Skip to content

Conversation

@nicolas-my-happn
Copy link

What does this do?

Add Stackdriver target

Why is it a good idea?

Stackdriver (GCP) isn't currently supported as target in Grafanalib

Context

Stackdriver target allows to generate dashboard for GCP, such as this:

  "targets": [
    {
      "aliasBy": null,
      "datasource": {
        "type": "stackdriver",
        "uid": "zzz"
      },
      "metricType": null,
      "queryType": "timeSeriesList",
      "refId": "A",
      "timeSeriesList": {
        "alignmentPeriod": "cloud-monitoring-auto",
        "crossSeriesReducer": "REDUCE_SUM",
        "filters": [
          "resource.label.project_id",
          "=",
          "my-project",
          "AND",
          "resource.label.job_name",
          "=",
          "dataflow-job",
          "AND",
          "metric.type",
          "=",
          "dataflow.googleapis.com/job/system_lag"
        ],
        "groupBys": [],
        "perSeriesAligner": "ALIGN_MAX",
        "preprocessor": "none",
        "projectName": "my-project",
        "view": "FULL"
      }
    }
  ]

This modification has been tested and works in many different panels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant