-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alloy-Mixin: allow config overwrite (#934)
* Allow config overwrite, and make grafanaDashboards and prometheusAlerts hidden * other bugfixes * applying filterselector to metrics and logs * fix logs dashboard tag * remove whitespaces * allowing empty filterSelectors and disabling SentenceCase labels * allow useSentenceCaseLabel * rename useSetenceCaseTemplateLabels config option * fixing sentencecase config param
- Loading branch information
Showing
13 changed files
with
287 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
local alloyClusterDashboards = | ||
(import './dashboards/cluster-node.libsonnet') + | ||
(import './dashboards/cluster-overview.libsonnet') + | ||
(import './config.libsonnet'); | ||
|
||
local otherDashboards = | ||
(import './dashboards/resources.libsonnet') + | ||
(import './dashboards/controller.libsonnet') + | ||
(import './dashboards/prometheus.libsonnet') + | ||
(import './dashboards/opentelemetry.libsonnet') + | ||
(import './config.libsonnet'); | ||
|
||
(import './dashboards/alloy-logs.libsonnet') + | ||
{ | ||
grafanaDashboards+: | ||
{ | ||
local alloyClusterDashboards = | ||
(import './dashboards/cluster-node.libsonnet') + | ||
(import './dashboards/cluster-overview.libsonnet'), | ||
local otherDashboards = | ||
(import './dashboards/resources.libsonnet') + | ||
(import './dashboards/controller.libsonnet') + | ||
(import './dashboards/prometheus.libsonnet') + | ||
(import './dashboards/opentelemetry.libsonnet'), | ||
|
||
grafanaDashboards+:: | ||
// Propagate config down to inner dashboards. | ||
{ _config:: $._config } + ( | ||
if $._config.enableAlloyCluster then | ||
alloyClusterDashboards + | ||
otherDashboards | ||
else | ||
alloyClusterDashboards + | ||
otherDashboards | ||
else | ||
otherDashboards | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.