{"id":13509613,"url":"https://github.com/koudelka/elixir-riemann","last_synced_at":"2026-03-15T12:04:54.344Z","repository":{"id":31030482,"uuid":"34589043","full_name":"koudelka/elixir-riemann","owner":"koudelka","description":"A Riemann client for Elixir, surprise!","archived":false,"fork":false,"pushed_at":"2018-08-21T21:25:52.000Z","size":76,"stargazers_count":57,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-07T01:09:15.422Z","etag":null,"topics":["elixir","metrics","riemann"],"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/koudelka.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":"2015-04-25T22:43:01.000Z","updated_at":"2023-09-01T08:47:39.000Z","dependencies_parsed_at":"2022-08-24T14:21:02.242Z","dependency_job_id":null,"html_url":"https://github.com/koudelka/elixir-riemann","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/koudelka/elixir-riemann","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koudelka%2Felixir-riemann","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koudelka%2Felixir-riemann/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koudelka%2Felixir-riemann/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koudelka%2Felixir-riemann/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koudelka","download_url":"https://codeload.github.com/koudelka/elixir-riemann/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koudelka%2Felixir-riemann/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30541428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T11:51:50.226Z","status":"ssl_error","status_checked_at":"2026-03-15T11:51:49.397Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["elixir","metrics","riemann"],"created_at":"2024-08-01T02:01:10.347Z","updated_at":"2026-03-15T12:04:54.308Z","avatar_url":"https://github.com/koudelka.png","language":"Elixir","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"Riemann [![Build Status](https://travis-ci.org/koudelka/elixir-riemann.svg?branch=master)](https://travis-ci.org/koudelka/elixir-riemann)\n=======\n\nRiemann is (surprise!) a [Riemann](http://riemann.io) client for [Elixir](http://elixir-lang.org).\n\n## Getting Started\n\nChuck this into your project config:\n\n```elixir\ndefp deps do\n  [{:riemann, \" ~\u003e 0.1.6\"},\nend\n```\n\nYou'll also need to start the `:riemann` application, either manually (`Application.start(:riemann)`) or in your `mix.exs` application config.\n\n## Usage\n\n### Sending Events\n\nEvents are anything that implements the `Dict` protocol, so you'll likely want a `Keyword` list or a `Map`.\n\nIf you want to send [custom attributes](http://riemann.io/howto.html#custom-event-attributes), stick them in the `attributes` key as a `Dict`. You can add in the `state` key, if you want to add a state to your event.\n\nSend your events with `Riemann.send/1` and `Riemann.send_async/1`, blocking and non-blocking (just `call` and `cast`). They both expect an event, or a list of events.\n\n```elixir\nRiemann.send(service: \"my awesome app\", metric: 5.0, attributes: [build: \"7543\"])\n\nRiemann.send_async([\n  [service: \"my awesome app req\", metric: 1, state: \"up\", attributes: [build: \"7543\"]],\n  %{service: \"things in queue\", metric: 100, attributes: [build: \"7543\"]}\n])\n\n```\n\n### Querying for Events\nTo ask the server for a list of events [matching a query string](https://github.com/aphyr/riemann/blob/master/test/riemann/query_test.clj), use `Riemann.query/1`.\n\n```elixir\n{:ok, events} = Riemann.query('service ~= \"my awesome\"')\n#=\u003e events = [%{attributes: %{\"build\" =\u003e \"7543\"}, description: nil, host: \"dax\",\n#               metric: nil, service: \"my awesome app\", state: nil, tags: [],\n#               time: 1430329965, ttl: 60.0},\n#             %{attributes: %{\"build\" =\u003e \"7543\"}, description: nil, host: \"dax\", metric: 1,\n#               service: \"my awesome app req\", state: \"up\", tags: [], time: 1430329965,\n#               ttl: 60.0}]\n```\n\n## Configuration\nJust toss this snippet into your environment's config:\n\n```elixir\nconfig :riemann, :address,\n  host: \"127.0.0.1\",\n  port: 5555\n```\n\nYou can also set a hostname for events to override the default (the machine's name).\n\n```elixir\nconfig :riemann, event_host: \"app host (staging)\"\n```\n\n## Caveats\n  - Only TCP is supported, read [this](http://riemann.io/howto.html#what-protocol-should-i-use-to-talk-to-riemann).\n\n   If you want UDP, feel free to submit a PR (with tests 👺) or bug me to implement it.\n\n## License\n\nSee the LICENSE file. (spoiler: it's MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoudelka%2Felixir-riemann","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoudelka%2Felixir-riemann","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoudelka%2Felixir-riemann/lists"}