Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: receiver/expvarreceiver #9592

Closed
jamesmoessis opened this issue May 2, 2022 · 2 comments
Closed

New component: receiver/expvarreceiver #9592

jamesmoessis opened this issue May 2, 2022 · 2 comments

Comments

@jamesmoessis
Copy link
Contributor

The purpose and use-cases of the new component

An Expvar Receiver scrapes metrics from expvar, which exposes data in JSON format from an HTTP endpoint. The metrics are extracted from the expvar variable memstats, which exposes various information about the Go runtime.

Example configuration for the component

In the past we've used the signalfx-agent's expvar monitor, and I feel like this receiver could expose similar configurations.

We can also take inspiration from the hostmetricsreceiver which provides a set of default metrics, while allowing metrics to be included/excluded.

An example config could look like:

expvar:
  collection_interval: 30s
  host: 0.0.0.0
  port: 10000
  https: false
  path: /debug/vars 
  metrics: 
    <metric_name>:
      enabled: <true|false>

Telemetry data types supported

Metrics only.

Sponsor (Optional)

Looking for a sponsor 😃

Open to any suggestions and advice!

@MovieStoreGuy
Copy link
Contributor

I am happy to sponsor this

@jamesmoessis
Copy link
Contributor Author

This is now complete and in the contrib build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants