Skip to content

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

@atoulme

Description

@atoulme

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageNew item requiring triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions