lexmag/fluxter


High-performance and reliable InfluxDB writer for Elixir

https://hexdocs.pm/fluxter

License: ISC

Language: Elixir

Keywords: elixir, influxdb, instrumentation, metrics


Fluxter

CI Status Hex Version

Fluxter is an InfluxDB writer for Elixir. It uses the InfluxDB line protocol over UDP.

Installation

Add Fluxter as a dependency to your mix.exs file:

defp deps() do
  [{:fluxter, "~> 0.8"}]
end

Then run mix deps.get in your shell to fetch the dependencies.

Usage

See the documentation for detailed usage information.

A module that uses Fluxter becomes an InfluxDB connection pool:

defmodule MyApp.Fluxter do
  use Fluxter
end

Each Fluxter pool provides a start_link/1 function that starts the pool and connects to InfluxDB; this function needs to be invoked before the pool can be used. Typically, you won't call start_link/1 directly as you'll want to add a Fluxter pool to your application's supervision tree. For this use case, pools provide a child_spec/1 function:

def start(_type, _args) do
  children = [
    MyApp.Fluxter,
    #...
  ]
  Supervisor.start_link(children, strategy: :one_for_one)
end

Once the Fluxter pool is started, its write/2,3, measure/2,3,4, and other functions can successfully be used to send points to the data store.

License

This software is licensed under the ISC license.

Project Statistics

Sourcerank 6
Repository Size 60.5 KB
Stars 96
Forks 14
Watchers 5
Open issues 5
Dependencies 0
Contributors 4
Tags 14
Created
Last updated
Last pushed

Top Contributors See all

Aleksei Magusev Andrea Leopardi Cẩm Huỳnh Kian-Meng Ang

Packages Referencing this Repo

fluxter
High-performance and reliable InfluxDB writer for Elixir.
Latest release 0.10.0 - Updated - 96 stars

Recent Tags See all

v0.10.0 March 30, 2021
v0.9.1 October 28, 2020
v0.9.0 April 28, 2020
v0.8.1 April 27, 2020
v0.8.0 May 16, 2019
v0.7.1 February 12, 2018
v0.7.0 October 10, 2017
v0.6.1 May 09, 2017
v0.6.0 May 09, 2017
v0.5.0 December 23, 2016
v0.4.0 September 11, 2016
v0.3.1 May 15, 2016
v0.3.0 May 14, 2016
v0.2.0 March 22, 2016

Something wrong with this page? Make a suggestion

Last synced: 2021-03-31 03:46:47 UTC

Login to resync this repository