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

[receiver/mongodbatlas] Polling alerts sometimes does not have hostname field #16284

Closed
schmikei opened this issue Nov 14, 2022 · 1 comment · Fixed by #16286
Closed

[receiver/mongodbatlas] Polling alerts sometimes does not have hostname field #16284

schmikei opened this issue Nov 14, 2022 · 1 comment · Fixed by #16286
Labels
bug Something isn't working needs triage New item requiring triage receiver/mongodbatlas

Comments

@schmikei
Copy link
Contributor

Component(s)

receiver/mongodbatlas

What happened?

Description

The receiver in poll mode runs into issues for some alerts.

Steps to Reproduce

Run polls against active alerts that do not fall into HOST, HOST_METRIC, and REPLICA_SET

Expected Result

No error

Actual Result

{"error":"failed to split host:port : missing port in address"}

Collector version

v0.64.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

receivers:
  mongodbatlas:
    public_key: redacted
    private_key: redacted
    alerts:
      enabled: true
      mode: poll
      projects:
      - name: Project 1
        include_clusters: [Cluster0, Cluster1]
      poll_interval: 1m

Log output

{"error":"failed to split host:port : missing port in address"}

Additional context

I will be working on creating a PR for this shortly

@schmikei schmikei added bug Something isn't working needs triage New item requiring triage labels Nov 14, 2022
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage receiver/mongodbatlas
Projects
None yet
1 participant