Skip to content

Commit

Permalink
Merge branch 'main' into add_shutdown_podman
Browse files Browse the repository at this point in the history
  • Loading branch information
crobert-1 authored May 20, 2024
2 parents 5bdfd32 + 726ffec commit cc020d2
Show file tree
Hide file tree
Showing 23 changed files with 585 additions and 18 deletions.
27 changes: 27 additions & 0 deletions .chloggen/sqlserver_add_db_status_metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: sqlserverreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add metrics for database status

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [29865]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: []
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@ receiver/aerospikereceiver/ @open-telemetry/collect
receiver/apachereceiver/ @open-telemetry/collector-contrib-approvers @djaglowski
receiver/apachesparkreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @Caleb-Hurshman @mrsillydog
receiver/awscloudwatchmetricsreceiver/ @open-telemetry/collector-contrib-approvers @jpkrohling
receiver/awscloudwatchreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @schmikei
receiver/awscloudwatchreceiver/ @open-telemetry/collector-contrib-approvers @schmikei
receiver/awscontainerinsightreceiver/ @open-telemetry/collector-contrib-approvers @Aneurysm9 @pxaws
receiver/awsecscontainermetricsreceiver/ @open-telemetry/collector-contrib-approvers @Aneurysm9
receiver/awsfirehosereceiver/ @open-telemetry/collector-contrib-approvers @Aneurysm9
receiver/awss3receiver/ @open-telemetry/collector-contrib-approvers @atoulme @adcharre
receiver/awsxrayreceiver/ @open-telemetry/collector-contrib-approvers @wangzlei @srprash
receiver/azureblobreceiver/ @open-telemetry/collector-contrib-approvers @eedorenko @mx-psi
receiver/azureeventhubreceiver/ @open-telemetry/collector-contrib-approvers @atoulme @djaglowski @cparkins
receiver/azureeventhubreceiver/ @open-telemetry/collector-contrib-approvers @atoulme @cparkins
receiver/azuremonitorreceiver/ @open-telemetry/collector-contrib-approvers @nslaughter @codeboten
receiver/bigipreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @StefanKurek
receiver/carbonreceiver/ @open-telemetry/collector-contrib-approvers @aboguszewski-sumo
Expand Down
2 changes: 0 additions & 2 deletions extension/healthcheckv2extension/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/extension/healt

go 1.21.0

toolchain go1.22.3

require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.100.0
github.com/stretchr/testify v1.9.0
Expand Down
3 changes: 2 additions & 1 deletion receiver/awscloudwatchreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
| Stability | [alpha]: logs |
| Distributions | [contrib] |
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Areceiver%2Fawscloudwatch%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Fawscloudwatch) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Areceiver%2Fawscloudwatch%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Fawscloudwatch) |
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski), [@schmikei](https://www.github.com/schmikei) \| Seeking more code owners! |
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@schmikei](https://www.github.com/schmikei) \| Seeking more code owners! |
| Emeritus | [@djaglowski](https://www.github.com/djaglowski) |

[alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
Expand Down
3 changes: 2 additions & 1 deletion receiver/awscloudwatchreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ status:
alpha: [logs]
distributions: [contrib]
codeowners:
active: [djaglowski, schmikei]
active: [schmikei]
emeritus: [djaglowski]
seeking_new: true

tests:
Expand Down
3 changes: 2 additions & 1 deletion receiver/azureeventhubreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
| Stability | [alpha]: metrics, logs |
| Distributions | [contrib] |
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Areceiver%2Fazureeventhub%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Fazureeventhub) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Areceiver%2Fazureeventhub%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Fazureeventhub) |
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@atoulme](https://www.github.com/atoulme), [@djaglowski](https://www.github.com/djaglowski), [@cparkins](https://www.github.com/cparkins) \| Seeking more code owners! |
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@atoulme](https://www.github.com/atoulme), [@cparkins](https://www.github.com/cparkins) \| Seeking more code owners! |
| Emeritus | [@djaglowski](https://www.github.com/djaglowski) |

[alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
Expand Down
3 changes: 2 additions & 1 deletion receiver/azureeventhubreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ status:
alpha: [metrics, logs]
distributions: [contrib]
codeowners:
active: [atoulme, djaglowski, cparkins]
active: [atoulme, cparkins]
emeritus: [djaglowski]
seeking_new: true

tests:
Expand Down
16 changes: 16 additions & 0 deletions receiver/sqlserverreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,22 @@ metrics:
enabled: true
```
### sqlserver.database.count
The number of databases
This metric is only available when the receiver is configured to directly connect to SQL Server.
| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
| {databases} | Gauge | Int |
#### Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| database.status | The current status of a database | Str: ``online``, ``restoring``, ``recovering``, ``pending_recovery``, ``suspect``, ``offline`` |
### sqlserver.database.io.read_latency
Total time that the users waited for reads issued on this file.
Expand Down
4 changes: 4 additions & 0 deletions receiver/sqlserverreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func setupQueries(cfg *Config) []string {
queries = append(queries, getSQLServerPerformanceCounterQuery(cfg.InstanceName))
}

if cfg.MetricsBuilderConfig.Metrics.SqlserverDatabaseCount.Enabled {
queries = append(queries, getSQLServerPropertiesQuery(cfg.InstanceName))
}

return queries
}

Expand Down

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

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

106 changes: 106 additions & 0 deletions receiver/sqlserverreceiver/internal/metadata/generated_metrics.go

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ all_set:
enabled: true
sqlserver.batch.sql_recompilation.rate:
enabled: true
sqlserver.database.count:
enabled: true
sqlserver.database.io.read_latency:
enabled: true
sqlserver.lock.wait.rate:
Expand Down Expand Up @@ -64,6 +66,8 @@ none_set:
enabled: false
sqlserver.batch.sql_recompilation.rate:
enabled: false
sqlserver.database.count:
enabled: false
sqlserver.database.io.read_latency:
enabled: false
sqlserver.lock.wait.rate:
Expand Down
Loading

0 comments on commit cc020d2

Please sign in to comment.