{"id":20845772,"url":"https://github.com/urbanos-public/streaming_metrics","last_synced_at":"2026-06-10T07:31:05.422Z","repository":{"id":57553804,"uuid":"145865004","full_name":"UrbanOS-Public/streaming_metrics","owner":"UrbanOS-Public","description":"Library for shipping metrics from Elixir apps to monitoring sinks","archived":false,"fork":false,"pushed_at":"2023-06-05T14:01:38.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-14T22:24:11.633Z","etag":null,"topics":["cloudwatch","elixir","metrics-gathering","monitoring","prometheus"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/streaming_metrics/readme.html","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UrbanOS-Public.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,"governance":null}},"created_at":"2018-08-23T14:27:13.000Z","updated_at":"2019-08-29T13:58:58.000Z","dependencies_parsed_at":"2023-07-12T15:34:37.391Z","dependency_job_id":null,"html_url":"https://github.com/UrbanOS-Public/streaming_metrics","commit_stats":null,"previous_names":["smartcitiesdata/streaming_metrics"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrbanOS-Public%2Fstreaming_metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrbanOS-Public%2Fstreaming_metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrbanOS-Public%2Fstreaming_metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrbanOS-Public%2Fstreaming_metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UrbanOS-Public","download_url":"https://codeload.github.com/UrbanOS-Public/streaming_metrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243206632,"owners_count":20253715,"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":["cloudwatch","elixir","metrics-gathering","monitoring","prometheus"],"created_at":"2024-11-18T02:13:54.125Z","updated_at":"2025-12-11T23:33:43.311Z","avatar_url":"https://github.com/UrbanOS-Public.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Master](https://travis-ci.org/smartcitiesdata/streaming_metrics.svg?branch=master)](https://travis-ci.org/smartcitiesdata/streaming_metrics)\n[![Hex.pm Version](http://img.shields.io/hexpm/v/streaming_metrics.svg?style=flat)](https://hex.pm/packages/streaming_metrics)\n\n# Steaming Metrics\n\n## Description\n\nA library that interfaces with several metric recording backends.\n\n## Installation\n\nTo add to your mix dependencies, add the following block to your mix.exs deps:\n\n```elixir\ndef deps do\n  [\n    {:streaming_metrics, \"~\u003e 2.2.0\"}\n  ]\nend\n```\n\n## Usage\n\nThis library can record metrics to AWS CloudWatch, Prometheus, or to the console. To specify this, put something like the below in your environment config file.\n```\nconfig :my_app,\n  metric_collector: StreamingMetrics.ConsoleMetricCollector\n```\nor\n\n```\nconfig :my_app,\n  metric_collector: StreamingMetrics.PrometheusMetricCollector\n```\n\nor\n\n```\nconfig :my_app,\n  metric_collector: StreamingMetrics.AwsMetricCollector\n```\n\nEach collector implementation has three functions:\n\n- `record_metrics/2` takes an array of metrics and a namespace.\n - `count_metric/4` takes an integer, a namespace, an optional array of dimensions (ex: `[{\"DimensionName\", \"some dimension value\"}]`), and an optional timestamp.\n - `gauge_metric/5` takes an integer, a namespace, an optional array of dimensions (ex: `[{\"DimensionName\", \"some dimension value\"}]`), an optional unit type (see [here](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html)), and an optional timestamp.\n\n ## License\n\nSmartCity is released under the Apache 2.0 license - see the license at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbanos-public%2Fstreaming_metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbanos-public%2Fstreaming_metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbanos-public%2Fstreaming_metrics/lists"}