{"id":18469966,"url":"https://github.com/civo/civostatsd","last_synced_at":"2025-10-27T02:04:32.221Z","repository":{"id":87365222,"uuid":"58461814","full_name":"civo/civostatsd","owner":"civo","description":"This utility is a small Go application that runs in the background on Civo instances, collecting CPU, disk and memory usage and reporting them back to the Civo API so that they can be reported on in the control panel.","archived":false,"fork":false,"pushed_at":"2021-03-05T14:46:33.000Z","size":65,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-10T22:49:39.688Z","etag":null,"topics":["civo","civo-api","statistics"],"latest_commit_sha":null,"homepage":"https://www.civo.com","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/civo.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":"2016-05-10T13:02:29.000Z","updated_at":"2022-05-22T15:07:22.000Z","dependencies_parsed_at":"2023-03-13T18:47:12.050Z","dependency_job_id":null,"html_url":"https://github.com/civo/civostatsd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fcivostatsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fcivostatsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fcivostatsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civo%2Fcivostatsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/civo","download_url":"https://codeload.github.com/civo/civostatsd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253492588,"owners_count":21916963,"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":["civo","civo-api","statistics"],"created_at":"2024-11-06T10:12:15.682Z","updated_at":"2025-10-27T02:04:32.155Z","avatar_url":"https://github.com/civo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Civo Statsd\n\n[![Build Status](https://img.shields.io/travis/absolutedevops/civostatsd.svg?style=flat-square\u0026label=build)](https://travis-ci.org/absolutedevops/civostatsd)\n\n## Introduction\n\nThis utility is a small Go application that runs in the background on Civo instances, collecting CPU, disk and memory\nusage and reporting them back to the Civo API so that they can be reported on in the control panel.  It's open-source\nbecause we don't want users to think we're doing something underhanded and if you like, you can simply completely\nremove it from your instance with no detrimental side-effects (except for a warning in your control panel to say that\nwe can't access the stats).\n\n**STATUS:** This project is currently under active development and maintainance.\n\n## Compiling\n\nTo compile this project on a Mac for the Linux AMD64 target that we use, you can run the following command:\n\n```\nGOOS=\"linux\" GOARCH=\"amd64\" go build  -ldflags=\"-s -w\" -o civostatsd main.go\n```\n\nThis produces a stripped binary which is much smaller than default (6.5MB down to 4.7MB). Then you can use the `upx`\nutility (`brew install upx`) to compress it further, down to ~1.7MB.\n\n## Removing Civo Statsd\n\nTo remove this utility from your instance, you can simply SSH in and run this command:\n\n```\ncivostatsd --uninstall\n```\n\n## Internals\n\nEvery minute the daemon looks up the current CPU usage (as an overall percentage), the memory usage (excluding caches)\nand the disk usage and sends them all over HTTPS to the Civo API using the unique token stored in `/etc/civostatsd.json`.\n\nIt retrieves the stats using [shirou](https://github.com/shirou/gopsutil) library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivo%2Fcivostatsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcivo%2Fcivostatsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivo%2Fcivostatsd/lists"}