Skip to content

Commit

Permalink
[chore][sqlserver] added metadata stability (open-telemetry#21543)
Browse files Browse the repository at this point in the history
  • Loading branch information
BominRahmani committed May 9, 2023
1 parent 0816789 commit 3eaedc6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
16 changes: 9 additions & 7 deletions receiver/sqlserverreceiver/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Microsoft SQL Server Receiver

| Status | |
| ------------------------ |-----------|
| Stability | [beta] |
| Supported pipeline types | metrics |
| Distributions | [contrib] |
<!-- status autogenerated section -->
| Status | |
| ------------- |-----------|
| Stability | [beta]: 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 `sqlserver` receiver grabs metrics about a Microsoft SQL Server instance using the Windows Performance Counters.
Because of this, it is a Windows only receiver.
Expand Down Expand Up @@ -48,5 +52,3 @@ The full list of settings exposed for this receiver are documented [here](./conf
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/sqlserverreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ import (
)

const (
typeStr = "sqlserver"
stability = component.StabilityLevelDevelopment
typeStr = "sqlserver"
)

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

func createDefaultConfig() component.Config {
Expand Down
12 changes: 12 additions & 0 deletions receiver/sqlserverreceiver/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/sqlserverreceiver/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
type: sqlserverreceiver

status:
class: receiver
stability:
beta: [metrics]
distributions: [contrib]

resource_attributes:
sqlserver.database.name:
description: The name of the SQL Server database.
Expand Down

0 comments on commit 3eaedc6

Please sign in to comment.