{"id":13508400,"url":"https://github.com/msoedov/graphitex","last_synced_at":"2025-09-06T11:33:15.164Z","repository":{"id":57503174,"uuid":"88105832","full_name":"msoedov/graphitex","owner":"msoedov","description":"Graphite client for Elixir","archived":false,"fork":false,"pushed_at":"2018-04-25T22:50:00.000Z","size":27,"stargazers_count":4,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-13T19:46:08.737Z","etag":null,"topics":["carbon","elixir","graphite","graphite-client","monitoring"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msoedov.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-04-12T23:37:57.000Z","updated_at":"2023-09-05T12:37:22.000Z","dependencies_parsed_at":"2022-09-13T08:31:00.329Z","dependency_job_id":null,"html_url":"https://github.com/msoedov/graphitex","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/msoedov%2Fgraphitex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fgraphitex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fgraphitex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fgraphitex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msoedov","download_url":"https://codeload.github.com/msoedov/graphitex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232121440,"owners_count":18475558,"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":["carbon","elixir","graphite","graphite-client","monitoring"],"created_at":"2024-08-01T02:00:52.527Z","updated_at":"2025-01-01T19:44:37.497Z","avatar_url":"https://github.com/msoedov.png","language":"Elixir","funding_links":[],"categories":["Instrumenting / Monitoring"],"sub_categories":[],"readme":"# Graphitex\n\nGraphite client for Elixir with zero dependencies\n\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/msoedov/graphitex/blob/master/LICENSE)\n[![Hex Version](https://img.shields.io/hexpm/v/graphitex.svg)](https://hex.pm/packages/graphitex)\n[![Build Status](https://travis-ci.org/msoedov/graphitex.svg?branch=master)](https://travis-ci.org/msoedov/graphitex)\n\n\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `graphitex` to your list of dependencies in `mix.exs`:\n\n  ```elixir\n  def deps do\n    [{:graphitex, \"~\u003e 0.1.0\"}]\n  end\n  ```\n\n  2. Ensure `graphitex` is started before your application:\n\n  ```elixir\n  def application do\n    [applications: [:graphitex]]\n  end\n\n  ```\n  3. Set up configuration in `config.config.exs`:\n\n  ```elixir\n  config :graphitex, host: '188.166.101.102', port: 2003\n\n  ```\n  4. API:\n\n  ```elixir\n  Graphitex.metric(4, \"aws.cluster_one.avg_cpu\")\n  # or\n  Graphitex.metric(4, [\"aws\", \"cluster_one\", \"avg_cpu\"])\n  # or\n  Graphitex.metric(41.0, [:aws, :cluster_one, :avg_cpu])\n  ```\n\n  by default `:os.system_time(:seconds)` used as timestamp, but you can pass `ts` as an argument\n\n  ```elixir\n  Graphitex.metric(41, \"aws.cluster_one.avg_cpu\",:os.system_time(:seconds))\n\n  ```\n  likewise there is a shortcut\n\n  ```elixir\n  Graphitex.metric(41, \"aws.cluster_one.avg_cpu\", Graphitex.now)\n\n  ```\n\n  Insert batch:\n  ```elixir\n   [{4, \"client.transactions.east\"},\n    {2, \"client.transactions.west\"},\n    {5, \"client.transactions.north\", Graphitex.now}\n   ]\n  |\u003e Graphitex.metric_batch(batch)\n\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoedov%2Fgraphitex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsoedov%2Fgraphitex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoedov%2Fgraphitex/lists"}