Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Latest commit

 

History

History

grafana

THIS CONTENT HAS MOVED TO THE DOCS BRANCH: PLEASE MAKE ANY FURTHER UPDATES THERE

File is available here on docs branch: docs\site\content\docs\latest\grafana-config

Grafana

Grafana is open source visualization and analytics software. It allows you to query, visualize, alert on, and explore your metrics no matter where they are stored. In plain English, it provides you with tools to turn your time-series database (TSDB) data into beautiful graphs and visualizations.

Components

  • Grafana server.

Configuration

The following configuration values can be set to customize the grafana installation.

Parameter Description Type Default
namespace Namespace where grafana will be deployed string grafana-addon
grafana.deployment.replicas Number of grafana replicas integer 1
grafana.deployment.containers.resources Grafana container resource requests and limits map {}
grafana.deployment.k8sSidecar.containers.resources Grafana container resource requests and limits map {}
grafana.deployment.podAnnotations The Grafana deployments pod annotations map {}
grafana.deployment.podLabels The Grafana deployments pod labels map {}
grafana.service.type Type of service to expose Grafana. Supported Values: ClusterIP, NodePort, LoadBalancer string vSphere: NodePort, aws/azure: LoadBalancer
grafana.service.port Grafana service port integer 80
grafana.service.targetPort Grafana service target port integer 9093
grafana.service.labels Grafana service labels map {}
grafana.service.annotations Grafana service annotations map {}
grafana.config.grafana_ini The grafana configuration config file grafana.ini
grafana.config.datasource_yaml Grafana datasource config string prometheus
grafana.config.dashboardProvider_yaml Grafana dashboard provider config yaml file provider.yaml
grafana.pvc.annotations Storage class to use for persistent volume claim. By default this is null and default provisioner is used string null
grafana.pvc.storageClassName Storage class to use for persistent volume claim. By default this is null and default provisioner is used string null
grafana.pvc.accessMode Define access mode for persistent volume claim. Supported values: ReadWriteOnce, ReadOnlyMany, ReadWriteMany string ReadWriteOnce
grafana.pvc.storage Define storage size for persistent volume claim string 2Gi
grafana.secret.type Secret type defined for Grafana dashboard string Opaque
grafana.secret.admin_user username to access Grafana dashboard string YWRtaW4=
grafana.secret.admin_password password to access Grafana dashboard string admin
grafana.secret.ldap_toml If using ldap auth, ldap configuration file path string ""
ingress.enabled Enable/disable ingress for grafana boolean true
ingress.virtual_host_fqdn Hostname for accessing grafana string grafana.system.tanzu
ingress.prefix Path prefix for grafana string /
ingress.tlsCertificate.tls.crt Optional cert for ingress if you want to use your own TLS cert. A self signed cert is generated by default string Generated cert
ingress.tlsCertificate.tls.key Optional cert private key for ingress if you want to use your own TLS cert. Generated cert key

Usage Example

  • Set up data sources for your metrics you can add one or more data sources to Grafana to start. See the Grafana documentation for detailed description of how to add a data source.
  • Create Dashboards There are many prebuilt Grafana dashboard templates available for various data sources. You can check out the templates here.
  • Enable Ingress on Grafana as per your requirement.