{"id":26164699,"url":"https://github.com/optum/telemetry-metrics-parser","last_synced_at":"2025-04-14T15:22:07.468Z","repository":{"id":43009580,"uuid":"379733440","full_name":"Optum/telemetry-metrics-parser","owner":"Optum","description":"Parses out metrics from different formats to Ruby hashes. Currently supports InfluxDB Line Protocol","archived":false,"fork":false,"pushed_at":"2022-09-30T16:57:52.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T15:22:01.350Z","etag":null,"topics":["influxdb","ruby","telemetry"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/Optum.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2021-06-23T21:29:21.000Z","updated_at":"2022-09-30T16:55:40.000Z","dependencies_parsed_at":"2022-08-21T00:50:40.455Z","dependency_job_id":null,"html_url":"https://github.com/Optum/telemetry-metrics-parser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Ftelemetry-metrics-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Ftelemetry-metrics-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Ftelemetry-metrics-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Ftelemetry-metrics-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optum","download_url":"https://codeload.github.com/Optum/telemetry-metrics-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248904626,"owners_count":21180836,"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":["influxdb","ruby","telemetry"],"created_at":"2025-03-11T15:39:42.082Z","updated_at":"2025-04-14T15:22:07.445Z","avatar_url":"https://github.com/Optum.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telemetry::Metrics::Parser\nA ruby gem designed to parse and process telemetry style metrics\n\n\n## InfluxDB Line Protocol\n```\n# weather,location=us-midwest temperature=82 1465839830100400200\n#   |    -------------------- --------------  |\n#   |             |             |             |\n#   |             |             |             |\n# +-----------+--------+-+---------+-+---------+\n# |measurement|,tag_set| |field_set| |timestamp|\n# +-----------+--------+-+---------+-+---------+\n```\n\nExample\n```ruby\nrequire 'telemetry/metrics/parser'\nresults = Telemetry::Metrics::Parser.line_protocol('weather,location=us-midwest temperature=82 1465839830100400200')\n\nresults[:measurement] # =\u003e weather\nresults[:tags] # =\u003e { location: 'us-midwest' }\nresults[:fields] # =\u003e { temperature: 82 }\nresults[:timestamp] # =\u003e 1465839830100400200\n```\n\n#### Validations\n```ruby\nTelemetry::Metrics::Parser::LineProtocol.line_is_valid?('weather,location=us-midwest temperature=82 1465839830100400200') # true\nTelemetry::Metrics::Parser::LineProtocol.line_is_valid?('weather,location=us-midwest temperature=this_field_is_a_string 1465839830100400200') # false but returned as a string error\n```\n\nAuthors\n----------\n\n* [Matthew Iverson](https://github.com/Esity) - current maintainer","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Ftelemetry-metrics-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptum%2Ftelemetry-metrics-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Ftelemetry-metrics-parser/lists"}