mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
32 lines
1011 B
Go
32 lines
1011 B
Go
// Copyright (C) 2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package remoteconfig
|
|
|
|
import "github.com/luxfi/cli/v2/pkg/utils"
|
|
|
|
func RenderGrafanaLokiDataSourceConfig() ([]byte, error) {
|
|
return templates.ReadFile("templates/grafana-loki-datasource.yaml")
|
|
}
|
|
|
|
func RenderGrafanaPrometheusDataSourceConfigg() ([]byte, error) {
|
|
return templates.ReadFile("templates/grafana-prometheus-datasource.yaml")
|
|
}
|
|
|
|
func RenderGrafanaConfig() ([]byte, error) {
|
|
return templates.ReadFile("templates/grafana.ini")
|
|
}
|
|
|
|
func RenderGrafanaDashboardConfig() ([]byte, error) {
|
|
return templates.ReadFile("templates/grafana-dashboards.yaml")
|
|
}
|
|
|
|
func GrafanaFoldersToCreate() []string {
|
|
return []string{
|
|
utils.GetRemoteComposeServicePath("grafana", "data"),
|
|
utils.GetRemoteComposeServicePath("grafana", "dashboards"),
|
|
utils.GetRemoteComposeServicePath("grafana", "provisioning", "datasources"),
|
|
utils.GetRemoteComposeServicePath("grafana", "provisioning", "dashboards"),
|
|
}
|
|
}
|