github.com/verrazzano/verrazzano-monitoring-operator@v0.0.30/pkg/constants/dashboardtemplate.go (about) 1 // Copyright (C) 2020, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 package constants 5 6 // GrafanaTmplPrometheusURI contains Grafana template for Prometheus 7 const GrafanaTmplPrometheusURI = "PrometheusURI" 8 9 // GrafanaTmplAlertManagerURI contains Grafana template for Alert Manager 10 const GrafanaTmplAlertManagerURI = "AlertManagerURI" 11 12 // Define the grafana dashboard provisioning provider. Here you specify the path where your dashboard 13 // ConfigMap will be mounted. 14 const ( 15 DashboardProviderTmpl = ` 16 apiVersion: 1 17 providers: 18 - name: 'VMOProvider' 19 orgId: 1 20 folder: '' 21 type: file 22 disableDeletion: false 23 editable: true 24 options: 25 path: /etc/grafana/provisioning/dashboards 26 ` 27 28 DataSourcesTmpl = ` 29 apiVersion: 1 30 31 datasources: 32 - name: Prometheus 33 type: prometheus 34 orgId: 1 35 access: proxy 36 url: http://{{.PrometheusURI}}:9090 37 isDefault: true 38 - name: Prometheus AlertManager 39 type: camptocamp-prometheus-alertmanager-datasource 40 orgId: 1 41 access: proxy 42 url: http://{{.AlertManagerURI}}:9093 43 isDefault: false 44 jsonData: 45 severity_critical: "4" 46 severity_high: "3" 47 severity_warning: "2" 48 severity_info: "1"` 49 )