Sharing charts

You can share charts that you create by using Grafana, which includes support for Cloud Monitoring.

To use Cloud Monitoring as a data source for Grafana, do the following:

  1. Enable the Cloud Monitoring API. To enable, click the following button, ensure that your Google Cloud project is selected in the toolbar, and then click Enable:

    Go to enable the Cloud Monitoring API page

    On this Google Cloud Console window, the API might be listed as Stackdriver Monitoring API.

  2. Enable the Resource Manager API. To enable, click the following button, ensure that your Google Cloud project is selected in the toolbar, and then click Enable:

    Go to enable the Resource Manager API page

  3. Create a service account and download its JSON Web Token to your computer:

    1. To go to the Google Cloud Console Credentials page, click the following button:

      Go to the API credentials page

    2. Click Create credentials and then select Service account.

    3. Fill in the service account name and the service account description. Click Create.

    4. In the Service account permissions pane, enter Monitoring and then select the role of Monitoring Viewer. Click Continue.

    5. In the Create key pane, click Create key, ensure that key type is set to JSON, and then click Create.

      After the key is downloaded to your computer, a confirmation dialog is displayed. Click Close.

    6. Click Done. You must complete this step.

  4. Add the Stackdriver data source to Grafana.

For complete information on using Cloud Monitoring with Grafana, see Using Google Stackdriver in Grafana.