diff --git a/CHANGELOG.md b/CHANGELOG.md index befb4237e42..db1fa900022 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,9 @@ Main (unreleased) - Send remote config status to the remote server for the remotecfg service. (@erikbaranowski) -- Add a `stat_statements` configuration block to the `prometheus.exporter.postgres` component to enable selecting both the query ID and the full SQL statement. The new block includes one option to enable statement selection, and another to configure the maximum length of the statement text. (@SimonSerrano) +- Add a `stat_statements` configuration block to the `prometheus.exporter.postgres` component to enable selecting both the query ID and the full SQL statement. The new block includes one option to enable statement selection, and another to configure the maximum length of the statement text. (@SimonSerrano) + +- (_Experimental_) Add `otelcol.connector.count` community component to count spans, span events, metrics, data points, and log records. (@yann-soubeyrand) ### Enhancements diff --git a/docs/sources/reference/compatibility/_index.md b/docs/sources/reference/compatibility/_index.md index 88764ba085c..a6583c70cf9 100644 --- a/docs/sources/reference/compatibility/_index.md +++ b/docs/sources/reference/compatibility/_index.md @@ -307,6 +307,7 @@ The following components, grouped by namespace, _export_ OpenTelemetry `otelcol. {{< collapse title="otelcol" >}} +- [otelcol.connector.count](../components/otelcol/otelcol.connector.count) - [otelcol.connector.host_info](../components/otelcol/otelcol.connector.host_info) - [otelcol.connector.servicegraph](../components/otelcol/otelcol.connector.servicegraph) - [otelcol.connector.spanlogs](../components/otelcol/otelcol.connector.spanlogs) @@ -361,6 +362,7 @@ The following components, grouped by namespace, _consume_ OpenTelemetry `otelcol {{< /collapse >}} {{< collapse title="otelcol" >}} +- [otelcol.connector.count](../components/otelcol/otelcol.connector.count) - [otelcol.connector.host_info](../components/otelcol/otelcol.connector.host_info) - [otelcol.connector.servicegraph](../components/otelcol/otelcol.connector.servicegraph) - [otelcol.connector.spanlogs](../components/otelcol/otelcol.connector.spanlogs) diff --git a/docs/sources/reference/components/otelcol/otelcol.connector.count.md b/docs/sources/reference/components/otelcol/otelcol.connector.count.md new file mode 100644 index 00000000000..a2ff8a39235 --- /dev/null +++ b/docs/sources/reference/components/otelcol/otelcol.connector.count.md @@ -0,0 +1,339 @@ +--- +canonical: https://grafana.com/docs/alloy/latest/reference/components/otelcol/otelcol.connector.count/ +aliases: + - ../otelcol.connector.count/ # /docs/alloy/latest/reference/components/otelcol.connector.count/ +description: Learn about otelcol.connector.count +labels: + stage: experimental + products: + - oss +title: otelcol.connector.count +--- + +# `otelcol.connector.count` + +`otelcol.connector.count` counts spans, span events, metrics, data points, log records and profiles from other `otelcol` components and outputs metrics from these counts. + +{{< admonition type="note" >}} +`otelcol.connector.count` is a wrapper over the upstream OpenTelemetry Collector [`count`][] connector. +Bug reports or feature requests will be redirected to the upstream repository, if necessary. + +[`count`]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/{{< param "OTEL_VERSION" >}}/connector/countconnector +{{< /admonition >}} + +You can specify multiple `otelcol.connector.count` components by giving them different labels. + +## Usage + +```alloy +otelcol.connector.count "