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

Instrument obsreport.Processor #22

Closed
wants to merge 99 commits into from
Closed

Conversation

moh-osman3
Copy link

@moh-osman3 moh-osman3 commented Nov 2, 2022

Description:

This PR instruments obsreport.Processor with otel go. This is a followup PR that is based on similar changes made for obsreport.Receiver: open-telemetry#6222

Link to tracking Issue: Part of open-telemetry#816

Testing:
Ran contrib collector with memory_limiter processor and prometheusreceiver + sent traces from demo client and confirmed that new metrics show up. Tested both with feature gate disabled and enabled.

From output of $ curl localhost:8888/metrics

# HELP otelcol_processor_accepted_metric_points Number of metric points successfully pushed into the next component in the pipeline.
# TYPE otelcol_processor_accepted_metric_points counter
otelcol_processor_accepted_metric_points{processor="memory_limiter",service_instance_id="d957e470-f4a9-4448-b0b9-e2a2e98a2b53",service_name="otelcontribcol",service_version="v0.63.0-48-ge9099f1c57"} 298
# HELP otelcol_processor_accepted_spans Number of spans successfully pushed into the next component in the pipeline.
# TYPE otelcol_processor_accepted_spans counter
otelcol_processor_accepted_spans{processor="memory_limiter",service_instance_id="d957e470-f4a9-4448-b0b9-e2a2e98a2b53",service_name="otelcontribcol",service_version="v0.63.0-48-ge9099f1c57"} 84
# HELP otelcol_processor_dropped_metric_points Number of metric points that were dropped.
# TYPE otelcol_processor_dropped_metric_points counter
otelcol_processor_dropped_metric_points{processor="memory_limiter",service_instance_id="d957e470-f4a9-4448-b0b9-e2a2e98a2b53",service_name="otelcontribcol",service_version="v0.63.0-48-ge9099f1c57"} 0
# HELP otelcol_processor_dropped_spans Number of spans that were dropped.
# TYPE otelcol_processor_dropped_spans counter
otelcol_processor_dropped_spans{processor="memory_limiter",service_instance_id="d957e470-f4a9-4448-b0b9-e2a2e98a2b53",service_name="otelcontribcol",service_version="v0.63.0-48-ge9099f1c57"} 0
# HELP otelcol_processor_refused_metric_points Number of metric points that were rejected by the next component in the pipeline.
# TYPE otelcol_processor_refused_metric_points counter
otelcol_processor_refused_metric_points{processor="memory_limiter",service_instance_id="d957e470-f4a9-4448-b0b9-e2a2e98a2b53",service_name="otelcontribcol",service_version="v0.63.0-48-ge9099f1c57"} 0
# HELP otelcol_processor_refused_spans Number of spans that were rejected by the next component in the pipeline.
# TYPE otelcol_processor_refused_spans counter
otelcol_processor_refused_spans{processor="memory_limiter",service_instance_id="d957e470-f4a9-4448-b0b9-e2a2e98a2b53",service_name="otelcontribcol",service_version="v0.63.0-48-ge9099f1c57"} 0

fatsheep9146 and others added 17 commits October 28, 2022 14:49
…s not none

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
…metry#6426)

Fixes open-telemetry#6191, open-telemetry#6197, open-telemetry#6198

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
Signed-off-by: Bogdan <bogdandrutu@gmail.com>
Extending feature gates to include reference URL and removal version.
Update values returned by all String methods of enum types to a consistent short form representing the enum identifier
These were requiring an invalid version of the collector (which was overwritten via replace statements in the module) but causes any modules that include them to require the invalid version of the collector.
fixes open-telemetry#6389

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
@moh-osman3 moh-osman3 changed the title Mohosman/instrument processor Instrument obsreport.Processor Nov 3, 2022
@moh-osman3 moh-osman3 marked this pull request as ready for review November 3, 2022 05:36
MovieStoreGuy and others added 27 commits November 15, 2022 17:23
Extended the documentation of the component to include safe Shutdown expectations.

Co-authored-by: Alex Boten <alex@boten.ca>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
…pen-telemetry#6531)

This change updates values returned by `StabilityLevel.String` to be consistent with other enum types:
  - All returned strings are capitalized.
  - "Undefined" is returned only for `StabilityLevelUndefined`.
  - "" is returned for integers that are out of StabilityLevel enum range.
@dmitryax has done an enormous amount of work on stabilizing the core APIs.
He is the next most active contributor to this repository and I think he
will be a great maintainer.
This is part of open-telemetry#6186

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
- Instrument batch processor with OpenTelemetry Go.
- Also fixed a small typo on the bucket definition of the batch_send_size_bytes view of OpenCensus.
Signed-off-by: Alex Boten <aboten@lightstep.com>
…line (open-telemetry#6540)

* [pipelines] Change test to not reuse same processor twice in one pipeline

* Add note to documentation about reuse of processors within a pipeline

* can -> MUST
This specifically calls out the correct way to merge the pull request.
…ge (open-telemetry#6532)

This was something the I missed during the previous review.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Fixes open-telemetry#6526

Signed-off-by: Alex Boten <aboten@lightstep.com>
…n-telemetry#6572)

* Deprecate Config.Validate() in favor of component.ValidateConfig

This PR is "split" from open-telemetry#6544, to avoid breaking changes and go via deprecation.

It is a bit hacky, but better than breaking everyone who uses this interface.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update config/receiver.go

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
…metry#6575)

Signed-off-by: Alex Boten <aboten@lightstep.com>

Signed-off-by: Alex Boten <aboten@lightstep.com>
* Instrument obsreport.Scraper (#19)

* instrument obsreport.scraper metrics with otel go

* add changelog

* update API to use MustNewScraper

* fix typo add testing for checkScraperMetrics

* remove accidental merge conflict references

* fix references after rebase

* address review comments

* remove unneded log

* add newlines

* run gofmt

* fix indenting
…ckage (open-telemetry#6553)

* Draft minimum changes to component.Host

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update .chloggen/draftminhost.yaml

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
…type. (open-telemetry#6579)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@moh-osman3
Copy link
Author

Opened new branch and cherry picked commits

@moh-osman3 moh-osman3 closed this Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet