-
Notifications
You must be signed in to change notification settings - Fork 47
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
µ/log publisher for InfluxDB #6
Comments
Hey Bruno,
Is this a typo? Also it is easy enough to write InfluxDB data points without the java library. In my travels I have written a spec and a mapping function to produce InfluxDB line protocol: https://gitlab.com/misterzirillo/plant-parenthood/-/blob/master/src/pp/device/metrics.cljs Would some version of that code be a suitable implementation for this project? |
Hi @misterzirillo, thanks for spotting the typo, probably a copy/paste issue. Thanks also for pointing out the line protocol, it is easy enough The only issue is that InfluxDB is designed to store We have done something similar for Prometheus: However, the InfluxDB model is closer to μ/log model, so it should be easier. For example an event such as: {:mulog/event-name :db/store-records
:mulog/timestamp 1587504242983,
:mulog/trace-id #mulog/flake "4VTF9QBbnef57vxVy-b4uKzh7dG7r7y4",
:mulog/root-trace #mulog/flake "4VTF9QBbnef57vxVy-b4uKzh7dG7r7y4",
:mulog/duration 254402837,
:mulog/namespace "your-ns",
:mulog/outcome :ok,
:app-name "mulog-demo",
:env "local",
:version "0.1.0"
:num-items 123} could be stored as follow:
I'm not sure whether there is any value on storing the |
This is my intuition as well. I think with that basic rule we a pretty solid out-of-the-box behavior for the InfluxDB publisher.
It depends on how strict μ/log is about recording the whole event. There are performance reasons that an InfuxDB user might want to store a subset of the event data or change which data are stored as tags/fields. How much control do you think the publisher should allow the user over the transformation? |
On second thought, the |
This issue seems stale and not sure anyone requires InfluxDB. |
A µ/log publisher for InfluxDB.
Preferred Approach:
Guidelines to write a publisher:
docker-compose.yaml
file for local testingThe text was updated successfully, but these errors were encountered: