How to disable Grafana usage analytics reporting for cluster and project monitoring in Rancher v2.2.x - v2.4.x
This document (000020077) is provided subject to the disclaimer at the end of this document.
Situation
Task
By default, Grafana will report usage analytics to the endpoint at stats.grafana.org. In an air-gapped environment this can result in many connection timeout or proxy certificate errors in the Grafana pod logs of cluster and project monitoring, as in the following example:
lvl=eror msg="Failed to send usage stats" logger=metrics err="Post https://stats.grafana.org/grafana-usage-report: x509: certificate signed by unknown authority"
This article outlines how to disable this usage analytics reporting in the Grafana instance of cluster and project monitoring for Rancher v2.2.x - v2.4.x.
Pre-requisites
- Rancher v2.2.x - v2.4.x
- Cluster or project monitoring enabled
Resolution
- Navigate to either the main cluster page or a project for which you have configured monitoring.
- Click "Tools" in the top menu bar and then "Monitoring".
-
Click "Show advanced options" at the bottom of the page to reveal the "Answers" fields and add the following two answers:
grafana.extraVars[0].name=GF_ANALYTICS_REPORTING_ENABLED grafana.extraVars[0].value='false'
-
Click "Save".
- You can verify this by checking the logs for the Grafana Pod, which should show the following near the top of the logs at container startup:
lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_ANALYTICS_REPORTING_ENABLED='false'"
Further reading
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020077
- Creation Date: 06-May-2021
- Modified Date:06-May-2021
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com