Skip to content

Commit

Permalink
[chore] [receiver/iis] added status metadata (#21218)
Browse files Browse the repository at this point in the history
  • Loading branch information
BominRahmani authored Apr 27, 2023
1 parent 8a93672 commit 35e65eb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
11 changes: 7 additions & 4 deletions receiver/iisreceiver/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# Microsoft IIS Receiver

<!-- status autogenerated section -->
| 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
<!-- end autogenerated section -->

The `iis` receiver grabs metrics about an IIS instance using the Windows Performance Counters.
Because of this, it is a Windows only receiver.

Expand All @@ -21,13 +26,11 @@ Example:
receivers:
iis:
collection_interval: 10s

```

The full list of settings exposed for this receiver are documented [here](./config.go).

## 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
5 changes: 2 additions & 3 deletions receiver/iisreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ import (
)

const (
typeStr = "iis"
stability = component.StabilityLevelBeta
typeStr = "iis"
)

// NewFactory creates a factory for iis receiver.
func NewFactory() receiver.Factory {
return receiver.NewFactory(
typeStr,
createDefaultConfig,
receiver.WithMetrics(createMetricsReceiver, stability))
receiver.WithMetrics(createMetricsReceiver, metadata.Stability))
}

func createDefaultConfig() component.Config {
Expand Down
12 changes: 12 additions & 0 deletions receiver/iisreceiver/internal/metadata/generated_status.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions receiver/iisreceiver/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 35e65eb

Please sign in to comment.