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.
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.
- Rancher v2.2.x - v2.4.x
- Cluster or project monitoring enabled
- 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:
- 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'"
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