{
  "resourceMetrics": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "checkout-api"
            }
          },
          {
            "key": "service.namespace",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "service.version",
            "value": {
              "stringValue": "1.14.2"
            }
          },
          {
            "key": "service.instance.id",
            "value": {
              "stringValue": "checkout-api-7d9f4c-2xk"
            }
          },
          {
            "key": "deployment.environment.name",
            "value": {
              "stringValue": "staging"
            }
          },
          {
            "key": "host.name",
            "value": {
              "stringValue": "node-a1"
            }
          },
          {
            "key": "host.ip",
            "value": {
              "stringValue": "192.0.2.11"
            }
          },
          {
            "key": "cloud.region",
            "value": {
              "stringValue": "eu-west-1"
            }
          },
          {
            "key": "k8s.namespace.name",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "k8s.pod.name",
            "value": {
              "stringValue": "checkout-api-7d9f4c-2xk"
            }
          },
          {
            "key": "process.pid",
            "value": {
              "intValue": "4211"
            }
          },
          {
            "key": "telemetry.sdk.name",
            "value": {
              "stringValue": "opentelemetry"
            }
          },
          {
            "key": "telemetry.sdk.language",
            "value": {
              "stringValue": "java"
            }
          },
          {
            "key": "telemetry.sdk.version",
            "value": {
              "stringValue": "1.34.0"
            }
          }
        ]
      },
      "scopeMetrics": [
        {
          "scope": {
            "name": "com.example.shop.checkout",
            "version": "1.14.2"
          },
          "metrics": [
            {
              "name": "http.server.request.count",
              "description": "Requests handled.",
              "unit": "{request}",
              "sum": {
                "aggregationTemporality": 2,
                "isMonotonic": true,
                "dataPoints": [
                  {
                    "attributes": [
                      {
                        "key": "http.request.method",
                        "value": {
                          "stringValue": "POST"
                        }
                      },
                      {
                        "key": "http.route",
                        "value": {
                          "stringValue": "/api/checkout"
                        }
                      },
                      {
                        "key": "http.response.status_code",
                        "value": {
                          "intValue": "201"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "asInt": "24518"
                  },
                  {
                    "attributes": [
                      {
                        "key": "http.request.method",
                        "value": {
                          "stringValue": "POST"
                        }
                      },
                      {
                        "key": "http.route",
                        "value": {
                          "stringValue": "/api/checkout"
                        }
                      },
                      {
                        "key": "http.response.status_code",
                        "value": {
                          "intValue": "500"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "asInt": "41"
                  }
                ]
              }
            },
            {
              "name": "process.runtime.memory.rss",
              "description": "Resident set size.",
              "unit": "By",
              "gauge": {
                "dataPoints": [
                  {
                    "attributes": [
                      {
                        "key": "process.pid",
                        "value": {
                          "intValue": "4211"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "asInt": "418709504"
                  }
                ]
              }
            },
            {
              "name": "system.cpu.utilization",
              "description": "CPU utilisation, 0 to 1.",
              "unit": "1",
              "gauge": {
                "dataPoints": [
                  {
                    "attributes": [
                      {
                        "key": "cpu.mode",
                        "value": {
                          "stringValue": "user"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "asDouble": 0.4128
                  },
                  {
                    "attributes": [
                      {
                        "key": "cpu.mode",
                        "value": {
                          "stringValue": "system"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "asDouble": 0.0917
                  },
                  {
                    "attributes": [
                      {
                        "key": "cpu.mode",
                        "value": {
                          "stringValue": "idle"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "asDouble": 0.4955
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
