{"id":21056923,"url":"https://github.com/fluent-plugins-nursery/fluent-plugin-latency","last_synced_at":"2025-03-14T00:23:52.707Z","repository":{"id":16359353,"uuid":"19109409","full_name":"fluent-plugins-nursery/fluent-plugin-latency","owner":"fluent-plugins-nursery","description":"Fluentd plugin to measure latency until receiving the messages","archived":false,"fork":false,"pushed_at":"2017-09-15T08:14:10.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T04:51:11.443Z","etag":null,"topics":["fluentd-output-plugin","fluentd-plugin","multioutput","v10","v12","v14"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/fluent-plugins-nursery.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":"2014-04-24T13:29:17.000Z","updated_at":"2024-04-21T13:18:15.000Z","dependencies_parsed_at":"2022-08-31T05:04:33.251Z","dependency_job_id":null,"html_url":"https://github.com/fluent-plugins-nursery/fluent-plugin-latency","commit_stats":null,"previous_names":["sonots/fluent-plugin-latency"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-plugin-latency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-plugin-latency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-plugin-latency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-plugin-latency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluent-plugins-nursery","download_url":"https://codeload.github.com/fluent-plugins-nursery/fluent-plugin-latency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243500852,"owners_count":20300797,"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":["fluentd-output-plugin","fluentd-plugin","multioutput","v10","v12","v14"],"created_at":"2024-11-19T16:54:57.531Z","updated_at":"2025-03-14T00:23:52.681Z","avatar_url":"https://github.com/fluent-plugins-nursery.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluent-plugin-latency\n\n[![Build Status](https://secure.travis-ci.org/sonots/fluent-plugin-latency.png?branch=master)](http://travis-ci.org/sonots/fluent-plugin-latency)\n\nFluentd plugin to measure latency until receiving the messages. \n\n## What is this for?\n\nThis plugin is to investigate the network latency, in addition, the blocking situation of input plugins.\n\nIn the Fluentd mechanism, input plugins usually blocks and will not receive a new data until the previous data processing finishes.\n\nBy seeing the latency, you can easily find how long the blocking situation is occuring.\n\n## How this works\n\nFluentd messages include the time attribute which expresses the time of when the message is created, or when it is written in application logs.\n\nThis plugin takes the difference between the current time and the time attribute to obtain the latency. \n\n## Installation\n\nUse RubyGems:\n\n    gem install fluent-plugin-latency\n\n## Configuration\n\nFollowing example measures the max and average latency until receiving messages. \n\n```apache\n\u003csource\u003e\n  type forward\n  port 24224\n\u003c/source\u003e\n\n# Latency plugin output comes here\n\u003cmatch latency\u003e\n  type stdout\n\u003c/match\u003e\n\n# Whatever you want to do\n\u003cmatch rewrite.**\u003e\n  type stdout\n\u003c/match\u003e\n\n# All messages come here once. \n\u003cmatch **\u003e\n  type copy\n  \u003cstore\u003e\n    type latency\n    tag latency\n    interval 60\n  \u003c/store\u003e\n  \u003cstore\u003e\n    type rewrite\n    add_prefix rewrite\n  \u003c/store\u003e\n\u003c/match\u003e\n```\n\nOutput will be like\n\n```\nlatency: {\"max\":1.011,\"avg\":0.002\",\"num\":10}\n```\n\nwhere `max` and `avg` are the maximum and average latency, and `num` is the number of messages.\n\n## Option Parameters\n\n* interval\n\n    The time interval to emit measurement results\n\n* tag\n\n    The output tag name. Default is `latency`\n\n## ChangeLog\n\nSee [CHANGELOG.md](CHANGELOG.md) for details.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new [Pull Request](../../pull/new/master)\n\n## Copyright\n\nCopyright (c) 2014 Naotoshi Seo. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent-plugins-nursery%2Ffluent-plugin-latency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluent-plugins-nursery%2Ffluent-plugin-latency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent-plugins-nursery%2Ffluent-plugin-latency/lists"}