{"id":17304000,"url":"https://github.com/owainlewis/influx","last_synced_at":"2025-10-26T17:36:07.948Z","repository":{"id":62433022,"uuid":"56936144","full_name":"owainlewis/influx","owner":"owainlewis","description":"An async client for Influx DB","archived":false,"fork":false,"pushed_at":"2016-11-26T17:04:04.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T04:42:10.253Z","etag":null,"topics":["async-client","http-kit","influxdb"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owainlewis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-23T19:07:08.000Z","updated_at":"2023-09-08T17:09:36.000Z","dependencies_parsed_at":"2022-11-01T21:16:03.085Z","dependency_job_id":null,"html_url":"https://github.com/owainlewis/influx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Finflux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Finflux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Finflux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Finflux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owainlewis","download_url":"https://codeload.github.com/owainlewis/influx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245749905,"owners_count":20666086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async-client","http-kit","influxdb"],"created_at":"2024-10-15T11:51:56.104Z","updated_at":"2025-10-26T17:36:02.910Z","avatar_url":"https://github.com/owainlewis.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Influx\n\n![](https://travis-ci.org/owainlewis/influx.svg)\n\n![](https://raw.githubusercontent.com/owainlewis/influx/master/logo.png)\n\nAn async client for Influx DB. If there's anything I've missed please get in touch.\nInternally this client uses http-kit for async requests. Use the *@* operator to block requests. See http-kit for more info.\n\nInfluxDB has a really simple HTTP API an so this client tries to adhere to that simplicity as much as possible.\n\n## Usage\n\n[![Clojars Project](https://img.shields.io/clojars/v/io.forward/influx.svg)](https://clojars.org/io.forward/influx)\n\n## Getting Started\n\n```clojure\n(ns my-ns\n  (:require [influx.core :as influx]))\n```\n\nAll requests require configuration which is just a map of information needed to connect to InfluxDB\n\n```clojure\n(def local-conf\n  { :host \"http://192.168.99.100\"\n    :port 8086\n    :user nil\n    :password nil\n  })\n```\n\n## Queries\n\nRunning simple \"raw\" queries is straightforward.\n\n```clojure\n@(influx/query local-conf \"SHOW DATABASES\")\n```\n\nAn example REPL session showing the difference between blocking and non blocking requests.\n\n```clojure\n(query local-conf show-databases-query)\n;; #promise[{:status :pending, :val nil} 0xa50d47c]\n\n@(query local-conf show-databases-query)\n;; {:status 200,\n;;  :body {:results [{:series [{:name \"databases\", :columns [\"name\"], :values [[\"_internal\"]]}]}]}}\n```\n\n## Writing Data\n\nIf you want to write a single line of data to influx\n\n```clojure\n(influx/write-metric local-conf \"mydb\" \"cpu_load_short,host=server02 value=0.67\")\n```\n\nOr a batch of data\n\n```clojure\n(def sample-data\n  [ \"cpu_load_short,host=server02 value=0.67\"\n    \"cpu_load_short,host=server02,region=us-west value=0.55 1422568543702900257\"\n    \"cpu_load_short,direction=in,host=server01,region=us-west value=2.0 1422568543702900257\" ])\n\n(influx/write-batch-metrics local-conf \"mydb\" sample-data)\n```\n\n## License\n\nCopyright © 2016 Owain Lewis\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainlewis%2Finflux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowainlewis%2Finflux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainlewis%2Finflux/lists"}