{
  "resourceMetrics": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "payments-api"
            }
          },
          {
            "key": "service.namespace",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "service.version",
            "value": {
              "stringValue": "3.1.4"
            }
          },
          {
            "key": "service.instance.id",
            "value": {
              "stringValue": "payments-api-31ef60-7wz"
            }
          },
          {
            "key": "deployment.environment.name",
            "value": {
              "stringValue": "staging"
            }
          },
          {
            "key": "host.name",
            "value": {
              "stringValue": "node-b2"
            }
          },
          {
            "key": "host.ip",
            "value": {
              "stringValue": "192.0.2.22"
            }
          },
          {
            "key": "cloud.region",
            "value": {
              "stringValue": "eu-west-1"
            }
          },
          {
            "key": "k8s.namespace.name",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "k8s.pod.name",
            "value": {
              "stringValue": "payments-api-31ef60-7wz"
            }
          },
          {
            "key": "process.pid",
            "value": {
              "intValue": "7452"
            }
          },
          {
            "key": "telemetry.sdk.name",
            "value": {
              "stringValue": "opentelemetry"
            }
          },
          {
            "key": "telemetry.sdk.language",
            "value": {
              "stringValue": "python"
            }
          },
          {
            "key": "telemetry.sdk.version",
            "value": {
              "stringValue": "1.34.0"
            }
          }
        ]
      },
      "scopeMetrics": [
        {
          "scope": {
            "name": "example.shop.payments",
            "version": "3.1.4"
          },
          "metrics": [
            {
              "name": "rpc.server.duration",
              "description": "RPC latency, base-2 exponential buckets.",
              "unit": "s",
              "exponentialHistogram": {
                "aggregationTemporality": 2,
                "dataPoints": [
                  {
                    "attributes": [
                      {
                        "key": "rpc.method",
                        "value": {
                          "stringValue": "Authorize"
                        }
                      }
                    ],
                    "startTimeUnixNano": "1773652472850000000",
                    "timeUnixNano": "1773738872850000000",
                    "count": "14022",
                    "sum": 918.4471,
                    "scale": 3,
                    "zeroCount": "18",
                    "zeroThreshold": 1e-06,
                    "positive": {
                      "offset": -40,
                      "bucketCounts": [
                        "3",
                        "11",
                        "48",
                        "192",
                        "617",
                        "1488",
                        "2871",
                        "3402",
                        "2914",
                        "1602",
                        "612",
                        "168",
                        "51",
                        "17",
                        "6",
                        "2"
                      ]
                    },
                    "negative": {
                      "offset": 0,
                      "bucketCounts": []
                    },
                    "min": 0.0009,
                    "max": 2.0031
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
