{
  "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.duration",
              "unit": "s",
              "description": "Latency with exemplars pointing at the trace fixtures.",
              "histogram": {
                "aggregationTemporality": 2,
                "dataPoints": [
                  {
                    "attributes": [
                      {
                        "key": "http.route",
                        "value": {
                          "stringValue": "/api/checkout"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "count": "24518",
                    "sum": 3418.2214,
                    "bucketCounts": [
                      "12",
                      "329",
                      "1869",
                      "5202",
                      "8496",
                      "5836",
                      "1767",
                      "591",
                      "296",
                      "89",
                      "25",
                      "6"
                    ],
                    "explicitBounds": [
                      0.005,
                      0.01,
                      0.025,
                      0.05,
                      0.1,
                      0.25,
                      0.5,
                      1.0,
                      2.5,
                      5.0,
                      10.0
                    ],
                    "exemplars": [
                      {
                        "timeUnixNano": "1773738872850000000",
                        "asDouble": 2.0031,
                        "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
                        "spanId": "00f067aa0ba902b7",
                        "filteredAttributes": [
                          {
                            "key": "http.response.status_code",
                            "value": {
                              "intValue": "502"
                            }
                          }
                        ]
                      },
                      {
                        "timeUnixNano": "1773738857850000000",
                        "asDouble": 0.0871,
                        "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
                        "spanId": "5e6f708192a3b4c5",
                        "filteredAttributes": []
                      }
                    ]
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
