diff --git a/receiver/iisreceiver/README.md b/receiver/iisreceiver/README.md index ac8aec029505..2021833b7519 100644 --- a/receiver/iisreceiver/README.md +++ b/receiver/iisreceiver/README.md @@ -1,11 +1,16 @@ # Microsoft IIS Receiver + | Status | | | ------------------------ |-----------| -| Stability | [beta] | +| Stability | [beta] | | Supported pipeline types | metrics | | Distributions | [contrib] | +[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib + + The `iis` receiver grabs metrics about an IIS instance using the Windows Performance Counters. Because of this, it is a Windows only receiver. @@ -21,6 +26,7 @@ Example: receivers: iis: collection_interval: 10s + ``` The full list of settings exposed for this receiver are documented [here](./config.go). @@ -28,6 +34,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 [documentation.md](./documentation.md) - -[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta -[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib diff --git a/receiver/iisreceiver/factory.go b/receiver/iisreceiver/factory.go index 7bcc2bbc9534..b85f81cd7863 100644 --- a/receiver/iisreceiver/factory.go +++ b/receiver/iisreceiver/factory.go @@ -25,8 +25,7 @@ import ( ) const ( - typeStr = "iis" - stability = component.StabilityLevelBeta + typeStr = "iis" ) // NewFactory creates a factory for iis receiver. @@ -34,7 +33,7 @@ func NewFactory() receiver.Factory { return receiver.NewFactory( typeStr, createDefaultConfig, - receiver.WithMetrics(createMetricsReceiver, stability)) + receiver.WithMetrics(createMetricsReceiver, metadata.Stability)) } func createDefaultConfig() component.Config { diff --git a/receiver/iisreceiver/internal/metadata/generated_status.go b/receiver/iisreceiver/internal/metadata/generated_status.go new file mode 100644 index 000000000000..60967d31c01e --- /dev/null +++ b/receiver/iisreceiver/internal/metadata/generated_status.go @@ -0,0 +1,12 @@ +// Code generated by mdatagen. DO NOT EDIT. + +package metadata + +import ( + "go.opentelemetry.io/collector/component" +) + +const ( + Type = "iisreceiver" + Stability = component.StabilityLevelBeta +) diff --git a/receiver/iisreceiver/metadata.yaml b/receiver/iisreceiver/metadata.yaml index 23bdfc3477d5..afbe22187ff2 100644 --- a/receiver/iisreceiver/metadata.yaml +++ b/receiver/iisreceiver/metadata.yaml @@ -1,5 +1,11 @@ type: iisreceiver +status: + class: receiver + stability: beta + pipelines: [metrics] + distributions: [contrib] + resource_attributes: iis.site: description: The site of the web server.