OpenTelemetry Collector Data v2 Metrics Example

Here is an example of a jitter metric:

{
  resource_metrics {
    resource {
      attributes {
        key: "thousandeyes.stream.id"
        value {
          string_value: "16fedf53-93d6-4f32-a3b6-4e3dd90ebc5d"
        }
      }
      attributes {
        key: "thousandeyes.account.id"
        value {
          string_value: "28147497671170"
        }
      }
      attributes {
        key: "thousandeyes.test.domain"
        value {
          string_value: "cea"
        }
      }
      attributes {
        key: "thousandeyes.test.id"
        value {
          int_value: 244002
        }
      }
      attributes {
        key: "thousandeyes.test.name"
        value {
          string_value: "Demo test"
        }
      }
      attributes {
        key: "thousandeyes.test.type"
        value {
          string_value: "angent-to-server"
        }
      }
      attributes {
        key: "server.address"
        value {
          string_value: "c.iana-servers.net"
        }
      }
      attributes {
        key: "server.port"
        value {
          int_value: 80
        }
      }
      attributes {
        key: "network.transport"
        value {
          string_value: "tcp"
        }
      }
      attributes {
        key: "custom_tag_1_key"
        value {
          string_value: "custom_tag_1_value"
        }
      }
      attributes {
        key: "custom_tag_2_key-many_values"
        value {
          array_value: {
            values: [
              {
                string_value: "custom_tag_2_value-1"
              },
              {
                string_value: "custom_tag_2_value-2"
              }
            ]
          }
        }
     }
      attributes {
        key: "thousandeyes.source.agent.id"
        value {
          int_value: 27820
        }
      }
      attributes {
        key: "thousandeyes.source.agent.name"
        value {
          string_value: "cea-14961"
        }
      }
      attributes {
        key: "thousandeyes.source.agent.location"
        value {
          string_value: "San Francisco, California, US"
        }
      }
      attributes {
        key: "thousandeyes.data.version"
        value {
          string_value: "v2"
        }
      }
      attributes {
        key: "thousandeyes.permalink"
        value {
          string_value: "https://app.stg.thousandeyes.com/net/metrics?__a=101920&testId=244002"
        }
      }
    }
    scope_metrics {
      scope {}
      metrics {
        name: "network.jitter"
        description: "Network metrics jitter"
        unit: "ms"
        gauge {
          data_points {
            time_unix_nano: 1691060100306000000
            as_double: 0.8775854623129539
          }
        }
      }
      metrics {
        name: "network.loss"
        description: "Network metrics loss"
        unit: "%"
        gauge {
          data_points {
            time_unix_nano: 1691060100306000000
            as_double: 0
          }
        }
      }
      metrics {
        name: "network.latency"
        description: "Network metrics latency"
        unit: "s"
        gauge {
          data_points {
            time_unix_nano: 1691060100306000000
            as_double: 0.08
          }
        }
      }
    }
  }
}

Last updated