InflexDB
Elixir client for InfluxDB
Installation
The package can be installed
by adding inflex_db to your list of dependencies in mix.exs:
def deps do
[
{:inflex_db, "~> 0.1.0"},
{:jason, "~> 1.1"}
]
endDocumentation can be found at https://hexdocs.pm/inflex_db.
Usage
client = %InflexDB.Client{
url: "http://localhost:8086",
username: "admin",
password: "admin",
auth_method: "basic"
}
points = [
%InflexDB.Point{
measurement: "weather",
tag_set: %{location: "us-midwest"},
field_set: %{temperature: 82}
},
%InflexDB.Point{
measurement: "weather",
tag_set: %{location: "us-midwest"},
field_set: %{temperature: 76}
}
]
InflexDB.write_points(client, "mydb", points)
# :okCheckout the docs for all the operations supported and more examples.