botify-labs / simpleflow

Python library for dataflow programming.
https://botify-labs.github.com/simpleflow/
MIT License
68 stars 24 forks source link

Instrumentation with influxdb backend #368

Closed Gnoale closed 4 years ago

Gnoale commented 4 years ago

Description

See comments from this issue for details about the implementation choice of InfluxDB.

I looked for the 2 endpoints referred in the issue 298 RecordActivityTaskHeartbeat and PollForActivityTask, and implement a method inside swf/core.py to send statistic to InfluxDB.

I define the tags region endpoint and hostname.

Considerations for Reviewers

The UDP listener on InfluxDB server doesn't seems to support this, a solutions could consist in writing to a Telegraf proxy agent wich would send the data to Influx over HTTPS. Or use a local database in the same network.

Test environment/Test case

Considerations for Deployment

In order to implement this solution, the InfluxDB server would have to be setup and the environment secured.