String array support in http/json metricset #9743
Labels
enhancement
good first issue
Indicates a good issue for first-time contributors
Hacktoberfest
Metricbeat
Metricbeat
module
Stalled
Team:Integrations
Label for the Integrations team
Describe the enhancement:
The standard http/json metricset should support parsing of String arrays when
json.is_array: true
is set.Pull request #6480 added support for JSON arrays containing JSON objects (the type for elements in the array is
[]common.MapStr
), but that doesn't allow parsing Strings in an array.Describe a specific use case for the enhancement or feature:
We are currently trying to pull data from an application that exposes a list of connected systems as a REST endpoint, returning a simple String array. So when I call http://example.com/rest/connectedSystems/ it returns
["systemA", "systemB", "anotherOne", "theLastOne"]
I want to track which systems are connected at any given point in time. This could be done by storing one doc for each system and timestamp, allowing me to aggregate later on. So later I could query for systemA, and see at what times it was or was not connected. Also, I'd be able to use a cardinality query to see how many systems were connected at any given time (having a trend graph on Kibana for it).
Link to discussion:
https://discuss.elastic.co/t/161342
The text was updated successfully, but these errors were encountered: