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/splunk_hec] Cannot read a single metric value payload #33084

Closed
atoulme opened this issue May 15, 2024 · 0 comments · Fixed by #33085 or #33096
Closed

[receiver/splunk_hec] Cannot read a single metric value payload #33084

atoulme opened this issue May 15, 2024 · 0 comments · Fixed by #33085 or #33096
Labels
bug Something isn't working needs triage New item requiring triage

Comments

@atoulme
Copy link
Contributor

atoulme commented May 15, 2024

Component(s)

receiver/splunkhec

What happened?

Description

The user is sending a single metric value with one _value field.

Steps to Reproduce

Send

{
  "index": "foo_events",
  "event": "metric",
  "source": "foo",
  "sourcetype": "foo-metrics",
  "fields": {
    "_value": 51.0,
    "metric_name": "foo.db_read_counter_tombstone:1drate",
    "foo": "bar",
    "cloudProvider": "aws",
    "cloudRegion": "us-east-2"
  }
}

to the collector over POST.

Expected Result

We evaluate one gauge data point under name foo.db_read_counter_tombstone:1drate with value 51.0.

Actual Result

We don't see any metric ingested.

Collector version

0.100.0

Environment information

Environment

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

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@atoulme atoulme added bug Something isn't working needs triage New item requiring triage labels May 15, 2024
dmitryax pushed a commit that referenced this issue May 16, 2024
**Description:**
 Fix single metric value parsing

**Link to tracking Issue:**
Fixes #33084
dmitryax added a commit to dmitryax/opentelemetry-collector-contrib that referenced this issue May 16, 2024
dmitryax added a commit to dmitryax/opentelemetry-collector-contrib that referenced this issue May 16, 2024
dmitryax added a commit that referenced this issue May 16, 2024
…33096)

Remove redundant `_value` attribute as it's set in the datapoint value.

Fixes
#33084
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this issue Jul 11, 2024
…#33085)

**Description:**
 Fix single metric value parsing

**Link to tracking Issue:**
Fixes open-telemetry#33084
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this issue Jul 11, 2024
…pen-telemetry#33096)

Remove redundant `_value` attribute as it's set in the datapoint value.

Fixes
open-telemetry#33084
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
Projects
None yet
1 participant