Skip to content

Commit

Permalink
declare expvarreceiver as alpha and add to components.go (open-teleme…
Browse files Browse the repository at this point in the history
…try#10847)

* add expvarreceiver to components.go

* add to changelog

* add to go.mod

* mark as alpha

* add status header

* alpha not beta

* add links
  • Loading branch information
jamesmoessis authored and kentquirk committed Jun 13, 2022
1 parent e486e7e commit 9fa0268
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

### 🚀 New components 🚀

- `expvarreceiver`: Include `expvarreceiver` in components (#10847)

### 💡 Enhancements 💡

### 🧰 Bug fixes 🧰
Expand Down
3 changes: 3 additions & 0 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dockerstatsreceiver v0.53.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dotnetdiagnosticsreceiver v0.53.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/elasticsearchreceiver v0.53.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/expvarreceiver v0.53.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.53.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/flinkmetricsreceiver v0.53.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver v0.53.0 // indirect
Expand Down Expand Up @@ -775,6 +776,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dotne

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/elasticsearchreceiver => ../../receiver/elasticsearchreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/expvarreceiver => ../../receiver/expvarreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver => ../../receiver/filelogreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/flinkmetricsreceiver => ../../receiver/flinkmetricsreceiver
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dockerstatsreceiver v0.53.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dotnetdiagnosticsreceiver v0.53.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/elasticsearchreceiver v0.53.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/expvarreceiver v0.53.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.53.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/flinkmetricsreceiver v0.53.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver v0.53.0
Expand Down Expand Up @@ -780,6 +781,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dotne

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/elasticsearchreceiver => ./receiver/elasticsearchreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/expvarreceiver => ./receiver/expvarreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver => ./receiver/filelogreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver => ./receiver/fluentforwardreceiver
Expand Down
2 changes: 2 additions & 0 deletions internal/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dockerstatsreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dotnetdiagnosticsreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/elasticsearchreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/expvarreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/flinkmetricsreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver"
Expand Down Expand Up @@ -206,6 +207,7 @@ func Components() (component.Factories, error) {
dockerstatsreceiver.NewFactory(),
dotnetdiagnosticsreceiver.NewFactory(),
elasticsearchreceiver.NewFactory(),
expvarreceiver.NewFactory(),
filelogreceiver.NewFactory(),
flinkmetricsreceiver.NewFactory(),
fluentforwardreceiver.NewFactory(),
Expand Down
3 changes: 3 additions & 0 deletions internal/components/receivers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func TestDefaultReceivers(t *testing.T) {
{
receiver: "elasticsearch",
},
{
receiver: "expvar",
},
{
receiver: "filelog",
getConfigFn: func() config.Receiver {
Expand Down
13 changes: 10 additions & 3 deletions receiver/expvarreceiver/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Expvar Receiver

| Status | |
| ------------------------ |-----------|
| Stability | [alpha] |
| Supported pipeline types | metrics |
| Distributions | [contrib] |

An Expvar Receiver scrapes metrics from [expvar](https://pkg.go.dev/expvar),
which exposes data in JSON format from an HTTP endpoint. The metrics are
extracted from the `expvar` variable [memstats](https://pkg.go.dev/runtime#MemStats),
which exposes various information about the Go runtime.

> :construction: This receiver is in development and incomplete. It should not be used yet.
## Configuration

### Default
Expand Down Expand Up @@ -45,4 +49,7 @@ receivers:
enabled: true
process.runtime.memstats.mallocs:
enabled: false
```
```

[alpha]:https://github.com/open-telemetry/opentelemetry-collector#alpha
[contrib]:https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib

0 comments on commit 9fa0268

Please sign in to comment.