{
  "resourceMetrics": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "cart-api"
            }
          },
          {
            "key": "service.namespace",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "service.version",
            "value": {
              "stringValue": "0.9.7"
            }
          },
          {
            "key": "service.instance.id",
            "value": {
              "stringValue": "cart-api-58bd21-9qh"
            }
          },
          {
            "key": "deployment.environment.name",
            "value": {
              "stringValue": "staging"
            }
          },
          {
            "key": "host.name",
            "value": {
              "stringValue": "node-a2"
            }
          },
          {
            "key": "host.ip",
            "value": {
              "stringValue": "192.0.2.12"
            }
          },
          {
            "key": "cloud.region",
            "value": {
              "stringValue": "eu-west-1"
            }
          },
          {
            "key": "k8s.namespace.name",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "k8s.pod.name",
            "value": {
              "stringValue": "cart-api-58bd21-9qh"
            }
          },
          {
            "key": "process.pid",
            "value": {
              "intValue": "1180"
            }
          },
          {
            "key": "telemetry.sdk.name",
            "value": {
              "stringValue": "opentelemetry"
            }
          },
          {
            "key": "telemetry.sdk.language",
            "value": {
              "stringValue": "go"
            }
          },
          {
            "key": "telemetry.sdk.version",
            "value": {
              "stringValue": "1.34.0"
            }
          }
        ]
      },
      "scopeMetrics": [
        {
          "scope": {
            "name": "github.com/example/shop/cart",
            "version": "0.9.7"
          },
          "metrics": [
            {
              "name": "shop.cart.updates",
              "unit": "{update}",
              "description": "Cart updates per four-hour interval.",
              "sum": {
                "aggregationTemporality": 1,
                "isMonotonic": true,
                "dataPoints": [
                  {
                    "attributes": [
                      {
                        "key": "shop.operation",
                        "value": {
                          "stringValue": "add"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773666872850000000",
                    "asInt": "19204"
                  },
                  {
                    "attributes": [
                      {
                        "key": "shop.operation",
                        "value": {
                          "stringValue": "add"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773666872850000000",
                    "timeUnixNano": "1773681272850000000",
                    "asInt": "20118"
                  },
                  {
                    "attributes": [
                      {
                        "key": "shop.operation",
                        "value": {
                          "stringValue": "add"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773681272850000000",
                    "timeUnixNano": "1773695672850000000",
                    "asInt": "19877"
                  },
                  {
                    "attributes": [
                      {
                        "key": "shop.operation",
                        "value": {
                          "stringValue": "add"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773695672850000000",
                    "timeUnixNano": "1773710072850000000",
                    "asInt": "20330"
                  },
                  {
                    "attributes": [
                      {
                        "key": "shop.operation",
                        "value": {
                          "stringValue": "add"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773710072850000000",
                    "timeUnixNano": "1773724472850000000",
                    "asInt": "19551"
                  },
                  {
                    "attributes": [
                      {
                        "key": "shop.operation",
                        "value": {
                          "stringValue": "add"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773724472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "asInt": "19342"
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
