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

  1. Navigate to either the main cluster page or a project for which you have configured monitoring.
  2. Click "Tools" in the top menu bar and then "Monitoring".
  3. 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'
  4. Click "Save".

  5. 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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center