{"id":17654931,"url":"https://github.com/aabouzaid/telegraf-flume-plugin","last_synced_at":"2025-10-09T08:50:54.069Z","repository":{"id":80895873,"uuid":"122884368","full_name":"aabouzaid/telegraf-flume-plugin","owner":"aabouzaid","description":"Telegraf plugin to collect Apache Flume metrics","archived":false,"fork":false,"pushed_at":"2018-08-05T22:20:22.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:28:57.633Z","etag":null,"topics":["apache-flume","flume","telegraf"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aabouzaid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-25T22:38:32.000Z","updated_at":"2018-08-25T10:03:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"602424d4-f5d5-4fc7-ba0b-476ca925d319","html_url":"https://github.com/aabouzaid/telegraf-flume-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aabouzaid/telegraf-flume-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aabouzaid%2Ftelegraf-flume-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aabouzaid%2Ftelegraf-flume-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aabouzaid%2Ftelegraf-flume-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aabouzaid%2Ftelegraf-flume-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aabouzaid","download_url":"https://codeload.github.com/aabouzaid/telegraf-flume-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aabouzaid%2Ftelegraf-flume-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001056,"owners_count":26082991,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["apache-flume","flume","telegraf"],"created_at":"2024-10-23T12:40:22.305Z","updated_at":"2025-10-09T08:50:54.043Z","avatar_url":"https://github.com/aabouzaid.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flume metrics collector\nI didn't find Apache Flume plugin for [Telegraf](https://github.com/influxdata/telegraf), so I found that it's nice to have one.\n\n## Configuration\n```toml\n[[inputs.flume]]\n  ## NOTE This plugin only reads numerical measurements, strings and booleans\n  ## will be ignored.\n  ## Name for the service being polled.  Will be appended to the name of the\n  ## measurement e.g. flume_agents_metrics.\n  ##\n  name = \"agents_metrics\"\n  ## URL of each server in the service's cluster\n  servers = [\n    \"http://localhost:41414/metrics\",\n  ]\n  ## Specific type (source, channel, sink) could be selected for each type,\n  ## instead collecting all metrics as they come from flume.\n  # [inputs.flume.filters]\n  #  channel = [\n  #    \"EventPutSuccessCount\",\n  #    \"EventPutAttemptCount\"\n  #  ]\n```\n\n## Test it\nDownload Telegraf if you don't have it, then copy flume.go to the following path:\n```\ncp -a flume $GOPATH/src/github.com/influxdata/telegraf/plugins/inputs\n```\nThen compile Telegraf, and add this example conf to Telegraf config dir:\n```\ncat \u003c\u003c EOF \u003e /etc/telegraf/telegraf.d/flume.conf\n[[inputs.flume]]\n  name = \"flume_agents_test\"\n  servers = [\n    \"http://localhost:41414/flume01.json\",\n    \"http://localhost:41414/flume02.json\",\n  ]\nEOF\n```\n\nFinally, run a simple http server with samples data:\n```\ncd samples\npython -m SimpleHTTPServer 41414\n# or\n# python3 -m http.server 41414\n```\n\n## Output example\nBased on the samples, the output should be as the following:\n```\nflume_agents_test,type=SOURCE,name=kafka-source01 AppendBatchAcceptedCount=0,AppendReceivedCount=0,KafkaEmptyCount=0,OpenConnectionCount=0,StartTime=1516706313621,StopTime=0,AppendAcceptedCount=0,AppendBatchReceivedCount=0,EventAcceptedCount=73353071,EventReceivedCount=73353071,KafkaCommitTimer=6432357,KafkaEventGetTimer=616114808\nflume_agents_test,type=CHANNEL,name=hdfs-channel02 EventPutAttemptCount=4234929,EventPutSuccessCount=4234929\nflume_agents_test,type=CHANNEL,name=hdfs-channel04 EventPutAttemptCount=12767892,EventPutSuccessCount=12767892\nflume_agents_test,type=CHANNEL,name=null-channel EventPutAttemptCount=17057471,EventPutSuccessCount=17057471\nflume_agents_test,name=hdfs-sink02,type=SINK BatchUnderflowCount=19281,ConnectionClosedCount=704,ConnectionCreatedCount=705,ConnectionFailedCount=0,EventDrainAttemptCount=4234929,EventDrainSuccessCount=4233252,BatchCompleteCount=691,BatchEmptyCount=4573,StartTime=1516706291441,StopTime=0\nflume_agents_test,type=SINK,name=hdfs-sink04 BatchEmptyCount=36,ConnectionClosedCount=704,ConnectionCreatedCount=707,ConnectionFailedCount=8,StartTime=1516706291445,StopTime=0,BatchCompleteCount=2276,BatchUnderflowCount=2694,EventDrainAttemptCount=12770801,EventDrainSuccessCount=12764502\nflume_agents_test,type=CHANNEL,name=hdfs-channel01 EventPutAttemptCount=2757422,EventPutSuccessCount=2757422\nflume_agents_test,type=CHANNEL,name=hdfs-channel03 EventPutSuccessCount=36535357,EventPutAttemptCount=36535357\nflume_agents_test,type=SINK,name=hdfs-sink01 EventDrainAttemptCount=2757422,EventDrainSuccessCount=2756217,StopTime=0,BatchEmptyCount=9466,ConnectionClosedCount=704,ConnectionCreatedCount=705,StartTime=1516706291440,BatchCompleteCount=317,BatchUnderflowCount=22371,ConnectionFailedCount=0\nflume_agents_test,type=SINK,name=hdfs-sink03 EventDrainSuccessCount=36533183,StartTime=1516706291444,BatchUnderflowCount=3138,ConnectionClosedCount=704,ConnectionCreatedCount=706,EventDrainAttemptCount=36536896,BatchCompleteCount=7147,BatchEmptyCount=124,ConnectionFailedCount=4,StopTime=0\nflume_agents_test,type=CHANNEL,name=memChannel EventPutSuccessCount=22948908,EventPutAttemptCount=22948908\nflume_agents_test,type=CHANNEL,name=fileChannel EventPutSuccessCount=468085,EventPutAttemptCount=468086\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faabouzaid%2Ftelegraf-flume-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faabouzaid%2Ftelegraf-flume-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faabouzaid%2Ftelegraf-flume-plugin/lists"}