{"id":18522411,"url":"https://github.com/astro/node-collectdout","last_synced_at":"2025-10-18T11:12:53.070Z","repository":{"id":5221851,"uuid":"6397922","full_name":"astro/node-collectdout","owner":"astro","description":"Periodically send values out to a Collectd server for statistics","archived":false,"fork":false,"pushed_at":"2016-08-06T21:21:29.000Z","size":36,"stargazers_count":6,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T04:51:42.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"keygle/html-parser","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astro.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}},"created_at":"2012-10-26T02:54:43.000Z","updated_at":"2018-12-19T20:42:05.000Z","dependencies_parsed_at":"2022-07-07T06:04:50.903Z","dependency_job_id":null,"html_url":"https://github.com/astro/node-collectdout","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fnode-collectdout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fnode-collectdout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fnode-collectdout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fnode-collectdout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astro","download_url":"https://codeload.github.com/astro/node-collectdout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248031047,"owners_count":21036324,"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":[],"created_at":"2024-11-06T17:30:42.894Z","updated_at":"2025-10-18T11:12:48.019Z","avatar_url":"https://github.com/astro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synopsis\n\nPeriodically send values out to a [Collectd](http://collectd.org/) server for statistics.\n\nThis piece of code has been sponsored by [Superfeedr](http://superfeedr.com/). They are awesome and you should really consider their service if you process RSS feeds!\n\n# Installation\n\n```javascript\nnpm i collectdout\n```\n\n# Usage\n\nSpawn a client that sends the data every 60s to myserver:\n```javascript\nvar Collectd = require('collectdout');\nvar client = new Collectd(60000, \"collectd_server\", 25826, \"my_server\");\n```\nFourth argument is optional, default is os.hostname()\n\nTo transmit data securely with username 'alice' and password '12345', you can\nselect authentication (HMAC) by setting the security level to 1.\n```javascript\nvar client = new Collectd(60000, \"collectd_server\", 25826, \"my_server\",\n                          1, 'alice', '12345');\n```\nYou can also encrypt the trasmitted data by setting the security level to 2.\n```javascript\nvar client = new Collectd(60000, \"collectd_server\", 25826, \"my_server\",\n                          2, 'alice', '12345');\n```\n\nCreate your plugin instance:\n```javascript\nvar plugin = client.plugin('myapp', 'worker13');\n```\n\nSet gauges, they are averaged within a sampling period:\n```javascript\nplugin.setGauge('users', 'total', 23);\nplugin.setGauge('load', '0', [1.0, 0.85, 0.7]);\n```\n\nManipulate counters:\n```javascript\nplugin.setCounter('if_octets', 'eth0', [0, 0]);\nplugin.addCounter('uptime', '0', 1);\n```\n\n# Change log\n- v0.0.8\n  * Adding crypto support\n- v0.0.7\n  * Fix counter bug\n- v0.0.6\n  * Possibility to send notification\n- v0.0.5\n  * Add this changelog\n  * Possibility to send data to more than one server\n- v0.0.4\n  * Fix interval issue\n  * Add optionnal parameter to set hostname\n- v0.0.3\n  * Fix multiple value sending\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastro%2Fnode-collectdout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastro%2Fnode-collectdout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastro%2Fnode-collectdout/lists"}