• /
  • Log in

Query Pixie data

Auto-telemetry with Pixie pulls data from the Pixie Cloud API and sends it to the New Relic OpenTelemetry endpoint. You can build your own charts and query your Auto-telemetry with Pixie data using the query builder and the NerdGraph API.

Find out more about getting started with Auto-telemetry with Pixie here.

Metrics and specifications

HTTP metrics

Query for duration of inbound HTTP request. For example:

FROM Metric SELECT average(http.server.duration)
FACET service.name
WHERE instrumentation.provider='pixie'

Event type

Metric

Metric name

http.server.duration

Spec

OpenTelemetry HTTP metric spec

Description

Measures the duration of the inbound HTTP request.

OTEL data type

MetricDataTypeDoubleSummary with min(quantile=0) and max(quantile=1)

Unit

milliseconds

Required attributes

service.name

Static attributes

instrumentation.provider = pixie

HTTP attributes

http.status_code

Entity attributes

service.instance.id
k8s.cluster.name
k8s.namespace.name
k8s.pod.name
k8s.container.name

JVM metrics

Query to measure the time spent in a given JVM garbage collectors in milliseconds. For example:

FROM Metric SELECT average(runtime.jvm.gc.collection) FACET service.name, gc
WHERE instrumentation.provider='pixie'

Event type

Metric

Metric name

runtime.jvm.gc.collection

Spec

opentelemetry.jvm.gc.collection

Description

Time spent in a given JVM garbage collector in milliseconds.

Unit

milliseconds

Required attributes

service.name

Static attributes

instrumentation.provider = pixie

JVM attributes

gc = young|full

Entity attributes

service.instance.id
k8s.cluster.name
k8s.namespace.name
k8s.pod.name
k8s.container.name

Query to find out the number of bytes in a given JVM memory area. For example:

FROM Metric SELECT average(runtime.jvm.memory.area)
FACET service.name
WHERE type='used' AND instrumentation.provider='pixie'

Event type

Metric

Metric name

runtime.jvm.memory.area

Spec

opentelemetry-java-instrumentation

Description

Bytes of a given JVM memory area.

Unit

bytes

Required attributes

service.name

Static attributes

instrumentation.provider = pixie

JVM attributes

type = used|total|max
area = heap

Entity attributes

service.instance.id
k8s.cluster.name
k8s.namespace.name
k8s.pod.name
k8s.container.name

HTTP server span

Example query:

FROM Span SELECT uniques(name)
WHERE span.kind='server'
AND instrumentation.provider='pixie'
AND service.name='orders'

Spec

Semantic conventions for HTTP spans

Event type

Span

Required attributes

name = normalized HTTP path
service.name
trace.id
span.id

Static attributes

span.kind = server
instrumentation.provider = pixie

HTTP attributes

http.host
http.method
http.path
http.status_code
http.url
http.user_agent

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.