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

Init POC opamp #3944

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Init POC opamp #3944

wants to merge 7 commits into from

Conversation

nchaulet
Copy link
Member

Description

Poc to figure and explore how OpAmp work

Testing with the following otelcol config

extensions:
  opamp:
    instance_uid: 01921fdd-3a15-7b37-9a41-587b4b7901c2
    capabilities:
      reports_effective_config: true
    server:
      http:
        endpoint: http://127.0.0.1:8220/opamp
        polling_interval: 1s
        tls:
          insecure_skip_verify: true

receivers:
  filelog:
    start_at: beginning
    include:
      - ${env:OTEL_WORKSHOP_DIR}/scenarios/simple-logs.log
exporters:
  debug:
    verbosity: detailed

service:
  telemetry:
    metrics:
      level: none
  extensions: [opamp]
  pipelines:
    logs:
      exporters:
        - debug
      receivers:
        - filelog

With otelcol-contrib

ompampServer := opamp.New(nil)
handlerFn, contextWithConn, _ := ompampServer.Attach(opamp.Settings{
Callbacks: opamp.CallbacksStruct{
OnConnectingFunc: func(request *http.Request) types.ConnectionResponse {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michel-laterman looks like this will be the way to extends the server

Copy link
Contributor

mergify bot commented Sep 23, 2024

This pull request does not have a backport label. Could you fix it @nchaulet? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label to automatically backport to the 8./d branch. /d is the digit

Copy link
Contributor

mergify bot commented Sep 23, 2024

backport-8.x has been added to help with the transition to the new branch 8.x.
If you don't need it please use backport-skip label and remove the backport-8.x label.

@mergify mergify bot added the backport-8.x Automated backport to the 8.x branch with mergify label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.x Automated backport to the 8.x branch with mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants