Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Add ability to specify where ExternalHTTPListener data goes #21

Open
chrisys opened this issue Aug 27, 2020 · 2 comments
Open

Add ability to specify where ExternalHTTPListener data goes #21

chrisys opened this issue Aug 27, 2020 · 2 comments

Comments

@chrisys
Copy link
Member

chrisys commented Aug 27, 2020

Currently, when using the External HTTP Listener plugin, data posted to this endpoint from multiple sources ends up in the same place within InfluxDB. This works if you have two different data sources, but if you had two sources the same (two identical sensors in different locations, for example), that post the same data structure, it won't be possible to differentiate between the two.

@phil-d-wilson
Copy link
Collaborator

From:
https://github.com/influxdata/telegraf/blob/release-1.15/plugins/inputs/http_listener_v2/README.md

there is a section for turning HTTP headers into tags:

  ## Optional setting to map http headers into tags
  ## If the http header is not present on the request, no corresponding tag will be added
  ## If multiple instances of the http header are present, only the first value will be used
  # http_header_tags = {"HTTP_HEADER" = "TAG_NAME"}

I need some samples to test with.

@Flo3561
Copy link

Flo3561 commented Nov 29, 2020

I have the same issue. I am using the ExternalHTTPListener with TheThingsNetwork as described in the balena blog article: https://www.balena.io/blog/receive-and-store-lora-sensor-data-from-ttn-using-a-raspberry-pi/
Would be great to have an easy solution to be able to clearly log multiple same sensors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants