Skip to content

Instantly share code, notes, and snippets.

@matzew
Created October 22, 2019 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/e9d10f2eaf63a7eff0a39a869185d652 to your computer and use it in GitHub Desktop.
Save matzew/e9d10f2eaf63a7eff0a39a869185d652 to your computer and use it in GitHub Desktop.
☁️  cloudevents.Event
Validation: valid
Context Attributes,
  specversion: 0.2
  type: dev.knative.prometheus.promql
  source: prometheus-source
  id: 3b0f4924-0d1c-4a3b-b15a-566c0ca67c83
  time: 2019-10-22T12:28:35.239998202Z
  contenttype: application/json
Data,
  {
    "status": "success",
    "data": {
      "resultType": "vector",
      "result": [
        {
          "metric": {
            "__name__": "ALERTS",
            "alertname": "ExampleAlertAlwaysFiring",
            "alertstate": "firing",
            "job": "alertmanager"
          },
          "value": [
            1571747315.23,
            "1"
          ]
        },
        {
          "metric": {
            "__name__": "ALERTS",
            "alertname": "ExampleAlertAlwaysFiring",
            "alertstate": "firing",
            "job": "node"
          },
          "value": [
            1571747315.23,
            "1"
          ]
        },
        {
          "metric": {
            "__name__": "ALERTS",
            "alertname": "ExampleAlertAlwaysFiring",
            "alertstate": "firing",
            "job": "prometheus"
          },
          "value": [
            1571747315.23,
            "1"
          ]
        },
        {
          "metric": {
            "__name__": "ALERTS",
            "alertname": "ExampleAlertAlwaysFiring",
            "alertstate": "firing",
            "job": "pushgateway"
          },
          "value": [
            1571747315.23,
            "1"
          ]
        }
      ]
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment