{"id":16392022,"url":"https://github.com/mikeshultz/orccollector","last_synced_at":"2025-07-09T12:46:14.525Z","repository":{"id":147876729,"uuid":"84021452","full_name":"mikeshultz/orccollector","owner":"mikeshultz","description":"Handy OpenTSDB collectors","archived":false,"fork":false,"pushed_at":"2017-10-15T21:48:38.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T21:16:56.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/mikeshultz.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":"2017-03-06T02:33:16.000Z","updated_at":"2017-03-08T05:32:05.000Z","dependencies_parsed_at":"2023-05-27T18:45:42.518Z","dependency_job_id":null,"html_url":"https://github.com/mikeshultz/orccollector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Forccollector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Forccollector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Forccollector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Forccollector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeshultz","download_url":"https://codeload.github.com/mikeshultz/orccollector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245909,"owners_count":19771028,"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-10-11T04:48:14.294Z","updated_at":"2025-02-22T22:27:54.217Z","avatar_url":"https://github.com/mikeshultz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# orccollector\n\nHandy OpenTSDB collectors.\n\n## Configuration\n\nMake sure to add `/etc/orc.ini` or `~/.orc.ini` using the following as a sample:\n\n    [default]\n    interval    = 10s\n\n    [otsdb]\n    host        = localhost\n    port        = 4242\n    qsize       = 1000\n    host_tag    = True\n    mps         = 100\n    check_host  = True\n\n    [sensu]\n    api_url     = http://localhost:3000\n\nEach module must have it's own section in the ini with its own \nconfiguration.  See the \"[Modules](#modules)\" section for more information.\n\n## Install\n\n`python setup.py install`\n\n## Run\n\n`orccollector` runs as a constant loop.  You can run it standalone with \njust the command `orccollector`.  Alternatively, you can configure \nsupervisord to watch over the process.\n\n### supervisord\n\nExample configuration for supervisord.\n\n    [program:orccollector]\n    command=orccollector\n    stdout_logfile=/var/log/orccollector.log\n    stderr_logfile=/var/log/orccollector.error.log\n    stdout_logfile_maxbytes=5MB\n    stderr_logfile_maxbytes=5MB\n\n## Modules\n\n### Sensu\n\nThe sensu module collects information on client health and puts it into \nOpenTSDB as the `sensu_status` metric.  Configure the Sensu API base URL\nin the `[sensu]` section in the ini file.\n\n#### Config\n\n    [sensu]\n    api_url     = http://localhost:3000\n\n### DarkSky\n\n[DarkSky](https://darksky.net/dev/) provides weather information via a \nRESTful API.  You can make up to 1000 calls per day to their API at no \ncharge.\n\n#### Config \n\n    [darksky]\n    api_key       = 0123456789abcdef\n    location_json = /path/to/weather_locations.json\n    interval    = 30m\n\n#### Location JSON\n\nThe location JSON file should be in a format like the following: \n\n    [\n        { \n            \"name\": \"Philipsburg\", \n            \"lat\": 46.3298812, \n            \"lng\": -113.3064933 \n        },\n        { \n            \"name\": \"Philadelphia\", \n            \"lat\": 40.0046684, \n            \"lng\": -75.258115 \n        }\n    ]\n\n**NOTE**: Make sure to pay attention to the interval so you don't go \nabove the amount of API calls you intend.  24 hours has 1440 seconds in \nit so a call per second will hit that limit.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Forccollector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeshultz%2Forccollector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Forccollector/lists"}