From 1a544cfc54d488e222e93d6bd37c983ffa8e490a Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Fri, 26 May 2023 09:30:33 -0700 Subject: [PATCH] [chore][receiver/apachespark] use generated status header This PR updates the component to generate the status table using mdatagen. Linked issue: #21213 Signed-off-by: Alex Boten --- receiver/apachesparkreceiver/README.md | 17 +++++++++-------- receiver/apachesparkreceiver/doc.go | 2 ++ .../internal/metadata/generated_status.go | 2 +- receiver/apachesparkreceiver/metadata.yaml | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/receiver/apachesparkreceiver/README.md b/receiver/apachesparkreceiver/README.md index a8fac1e81d26..65dace0b434d 100644 --- a/receiver/apachesparkreceiver/README.md +++ b/receiver/apachesparkreceiver/README.md @@ -1,10 +1,14 @@ # Apache Spark Receiver -| Status | | -| ------------------------ | ---------------- | -| Stability | [development] | -| Supported pipeline types | metrics | -| Distributions | [contrib] | + +| Status | | +| ------------- |-----------| +| Stability | [development]: metrics | +| Distributions | [contrib] | + +[development]: https://github.com/open-telemetry/opentelemetry-collector#development +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib + This receiver fetches metrics for an Apache Spark cluster through the Apache Spark REST API - specifically, the /metrics/json, /api/v1/applications/[app-id]/stages, /api/v1/applications/[app-id]/executors, and /api/v1/applications/[app-id]/jobs endpoints. @@ -45,6 +49,3 @@ The full list of settings exposed for this receiver are documented [here](./conf ## Metrics Details about the metrics produced by this receiver can be found in [metadata.yaml](./metadata.yaml) - -[development]: https://github.com/open-telemetry/opentelemetry-collector#development -[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib diff --git a/receiver/apachesparkreceiver/doc.go b/receiver/apachesparkreceiver/doc.go index 4841e7c72323..791f67320758 100644 --- a/receiver/apachesparkreceiver/doc.go +++ b/receiver/apachesparkreceiver/doc.go @@ -1,4 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 +//go:generate mdatagen metadata.yaml + package apachesparkreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/apachesparkreceiver" diff --git a/receiver/apachesparkreceiver/internal/metadata/generated_status.go b/receiver/apachesparkreceiver/internal/metadata/generated_status.go index 3eb68738b059..4c2ba72440c6 100644 --- a/receiver/apachesparkreceiver/internal/metadata/generated_status.go +++ b/receiver/apachesparkreceiver/internal/metadata/generated_status.go @@ -8,5 +8,5 @@ import ( const ( Type = "apachespark" - MetricsStability = component.StabilityLevelAlpha + MetricsStability = component.StabilityLevelDevelopment ) diff --git a/receiver/apachesparkreceiver/metadata.yaml b/receiver/apachesparkreceiver/metadata.yaml index ce300cdf42a0..24099173f33c 100644 --- a/receiver/apachesparkreceiver/metadata.yaml +++ b/receiver/apachesparkreceiver/metadata.yaml @@ -3,7 +3,7 @@ type: apachespark status: class: receiver stability: - alpha: [metrics] + development: [metrics] distributions: [contrib] resource_attributes: