Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove New Relic percentile query and clarify limitation #895

Merged
merged 2 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ You can also add these metrics to [dashboards](https://docs.newrelic.com/docs/qu

### Example NRQL Queries

<Blockquote mod="note" title="">

New Relic doesn't support calculating percentiles from metric data, which is the data format sent by this k6 output. See [this New Relic forum post](https://discuss.newrelic.com/t/percentiles-of-values-from-metrics-api-with-nrql-not-working/95832) and [the documentation about the metric data type](https://docs.newrelic.com/docs/data-apis/understand-data/metric-data/query-metric-data-type/) for details.

</Blockquote>

Here are some example NRQL queries you can easily copy and paste into widgets in a New Relic dashboard, you can however stick with the [chart builder](https://docs.newrelic.com/docs/query-your-data/explore-query-data/query-builder/introduction-query-builder). Find all your k6 Metrics under the metrics tab, prefixed with `k6.`

**Number of Virtual Users**
Expand All @@ -99,16 +105,6 @@ SELECT latest(k6.vus) FROM Metric TIMESERIES

</CodeGroup>

**90th Percentile Request Duration**

<CodeGroup labels={[""]}>

```plain
SELECT sum(k6.http_req_duration.sum.percentiles) AS '90th' FROM Metric WHERE percentile = 90 TIMESERIES
```

</CodeGroup>

**Max, Median, and Average Request Duration**

<CodeGroup labels={[""]}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ También puede añadir estas métricas a los [dashboards](https://docs.newrelic.

### Ejemplo de las consultas NRQL

<Blockquote mod="note" title="">

New Relic no tiene soporte para calcular percentiles sobre datos enviados como métricas, que es el formato enviado por esta integración. Vea [este hilo en el foro de New Relic](https://discuss.newrelic.com/t/percentiles-of-values-from-metrics-api-with-nrql-not-working/95832) y [la documentación sobre el tipo de dato `metric`](https://docs.newrelic.com/docs/data-apis/understand-data/metric-data/query-metric-data-type/) (en inglés) para más detalle.

</Blockquote>

A continuación se muestran algunos ejemplos de consultas NRQL que puedes copiar y pegar fácilmente en los widgets de un dashboard de New Relic, sin embargo, puedes seguir con el [constructor de gráficos](https://docs.newrelic.com/docs/query-your-data/explore-query-data/query-builder/introduction-query-builder). Encuentre todas sus métricas de k6 en la pestaña de métricas, con el prefijo `k6.`.


Expand All @@ -100,16 +106,6 @@ SELECT latest(k6.vus) FROM Metric TIMESERIES

</CodeGroup>

**Percentil 90 - Duración de la solicitud**

<CodeGroup labels={[""]}>

```plain
SELECT sum(k6.http_req_duration.sum.percentiles) AS '90th' FROM Metric WHERE percentile = 90 TIMESERIES
```

</CodeGroup>

**Duración máxima, mediana y media de las solicitudes**

<CodeGroup labels={[""]}>
Expand Down