Top Grafana Interview Questions (2021) | CodeUsingJava
















Most frequently Asked Grafana Interview Questions


  1. What is Grafana?
  2. What is a Grafana Dashboard?
  3. What is Grafana Cloud?
  4. What types of Monitoring can be done via Grafana?
  5. How to set up Grafana so that no password is necessary to view dashboards?
  6. How can we edit the link in a slack notification from Grafana?
  7. What are the 2 types of alerting in Grafana?
  8. How to import custom dashboards to grafana using help?
  9. How can we completely uninstall grafana?

What is Grafana?

Grafana helps us by allowing us to query, visualization, alert and explore our metrics no matter where they are stored, it also helps in providing us with the tools for turning our time series database data into the beautiful graphs and visualizations.

What is a Grafana Dashboard?

Grafana Dashboard contains data form the plugged-in data sources like Graphite, Prometheus, Influx DB, ElasticSearch, MySQL, PostgreSQL, etc.The dashboard contains a gamut of visualization optins such as geo maps, heat maps, histograms, all the variety of charts & graphs which a business typically requires to study data.It also can contain different individual panels on the grid, and each panel has different functionalities.

Dashboard


What is Grafana Cloud?

Grafana Cloud is highly available, fast fully managed and an open SaaS software as a service metrics platform.I takes the load of hosting the solution on prem and helps in free managing the entire development infrastructure and it runs on Kubernetes clusters.

What types of Monitoring can be done via Grafana?

There are 4 tyes of Monitoring that can be done by Grafana are:
CPU
Disk Space
Memory
Top Process

How to set up Grafana so that no password is necessary to view dashboards?

[auth.anonymous]
# enable anonymous access
enabled = true

[auth.basic]
enabled = false


How can we edit the link in a slack notification from Grafana?


[server]
# Protocol (http or https)
protocol = http

# The http port  to use
http_port = 3000

# The public facing domain name used to access grafana from a browser
domain = localhost

# The full public facing url
root_url = %(protocol)s://%(domain)s:%(http_port)s/



What are the 2 types of alerting in Grafana?

The 2 types of Grafana are as follows:
Alert Rule - helps in defining conditions which are regurlarly evaluated by Grafana.
Notification Channel - helps in notifying the channels which are configured for the alerts.


How to import custom dashboards to grafana using help?


{{- $files := .Files.Glob "dashboards/*.json" }}
{{- if $files }}
apiVersion: v1
kind: ConfigMapList
items:
{{- range $path, $fileContents := $files }}
{{- $dashboardName := regexReplaceAll "(^.*/)(.*)\\.json$" $path "2" }}
- apiVersion: v1
  kind: ConfigMap
  metadata:
    name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) $dashboardName | trunc 63 | trimSuffix "-" }}
    namespace: {{ template "prometheus-operator.namespace" . }}
    labels:
      {{- if $.Values.grafana.sidecar.dashboards.label }}
      {{ $.Values.grafana.sidecar.dashboards.label }}: "1"
      {{- end }}
      app: {{ template "prometheus-operator.name" $ }}-grafana
{{ include "prometheus-operator.labels" $ | indent 6 }}
  data:
    {{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
{{- end }}
{{- end }}




How can we completely uninstall grafana?


sudo apt-get remove --auto-remove grafana
sudo apt-get purge --auto-remove grafana
sudo apt-get autoclean
sudo apt-get autoremove
locate grafana and manually remove files and folder