{"id":31628026,"url":"https://github.com/jirutka/collectd-apk","last_synced_at":"2025-10-06T20:16:59.128Z","repository":{"id":65605260,"uuid":"498134532","full_name":"jirutka/collectd-apk","owner":"jirutka","description":"Collectd plugin for apk-tools","archived":false,"fork":false,"pushed_at":"2024-09-08T14:31:09.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T03:58:49.099Z","etag":null,"topics":["alpine-linux","apk-tools","collectd-plugin"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jirutka.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"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":"2022-05-31T00:24:52.000Z","updated_at":"2024-09-08T14:31:12.000Z","dependencies_parsed_at":"2023-01-31T12:10:12.360Z","dependency_job_id":null,"html_url":"https://github.com/jirutka/collectd-apk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jirutka/collectd-apk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fcollectd-apk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fcollectd-apk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fcollectd-apk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fcollectd-apk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jirutka","download_url":"https://codeload.github.com/jirutka/collectd-apk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fcollectd-apk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278324153,"owners_count":25968264,"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-04T02:00:05.491Z","response_time":63,"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":["alpine-linux","apk-tools","collectd-plugin"],"created_at":"2025-10-06T20:16:57.879Z","updated_at":"2025-10-06T20:16:59.124Z","avatar_url":"https://github.com/jirutka.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Collectd plugin for apk-tools\n:proj-name: collectd-apk\n:version: 0.2.0\n:gh-name: jirutka/{proj-name}\n:apk-tools-url: https://gitlab.alpinelinux.org/alpine/apk-tools\n:collectd-url: https://collectd.org\n:json-c-url: https://github.com/json-c/json-c\n\nA {collectd-url}[collectd] plugin that collects information about packages managed by {apk-tools-url}[apk-tools], a package manager developed for https://alpinelinux.org[Alpine Linux].\n\n\n== Usage\n\n[source]\n----\n\u003cLoadPlugin apk\u003e\n  Interval 86400  # 1 day\n\u003c/LoadPlugin\u003e\n----\n\n\n== Metrics\n\nThis section describes exposed metrics (values).\n\n\n=== apk-upgradable.count\n\nA number of upgradable (outdated) packages as reported by `apk list --upgradable --no-cache`.\n\n* *type*: GAUGE (min: 0, max: inf.)\n* *metadata*:\n** *os-id* (string): the value of `ID` in _/etc/os-release_ (e.g. `alpine`)\n** *os-version* (string): the value of `VERSION_ID` in _/etc/os-release_ (e.g. `3.16.0`)\n** *packages* (string): a JSON array of objects with the following keys:\n*** `p`: package name\n*** `o`: package origin (name of the aport)\n*** `v`: old version (currently installed)\n*** `w`: new version (available)\n\n\n== Requirements\n\n.*Runtime*:\n* {collectd-url}[collectd] 5.12+\n* {apk-tools-url}[libapk] 2.x\n* {json-c-url}[libjson-c]\n\n.*Build*:\n* C compiler and linker supporting at least C11 (tested with gcc)\n* pkg-config\n* GNU Make\n* {apk-tools-url}[apk-tools] development files\n* {json-c-url}[json-c] development files\n* {collectd-url}[collectd] development files\n\nThe header files needed to build collectd plugins are usually not included in the distribution packages.\nExceptions are _collectd-dev_ packages in Alpine Linux (since v3.16) and Debian – the core headers are installed in `/usr/include/collectd/core`.\nIf you don’t have `/usr/include/collectd/core/daemon/plugin.h`, download the collectd source package from https://collectd.org/download.shtml#source[collectd.org].\nThen build this plugin with variable `COLLECTD_INCLUDE_DIR` pointing to the unpacked `src/` directory: `make build COLLECTD_INCLUDE_DIR=/path/to/src`.\n\n\n== Installation\n\n=== On Alpine Linux\n\nInstall package {proj-name} from the Alpine’s Edge testing repository:\n\n[source, sh, subs=\"+attributes\"]\napk add {proj-name}\n\n\n=== From Source Tarball\n\n[source, sh, subs=\"+attributes\"]\n----\nwget https://github.com/{gh-name}/archive/v{version}/{proj-name}-{version}.tar.gz\ntar -xzf {proj-name}-{version}.tar.gz\ncd {proj-name}-{version}\n\nmake build\nmake install DESTDIR=/ prefix=/usr\n----\n\n\n== License\n\nThis project is licensed under https://opensource.org/licenses/GPL-2.0[GPL-2.0-or-later].\nFor the full text of the license, see the link:LICENSE[LICENSE] file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Fcollectd-apk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjirutka%2Fcollectd-apk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Fcollectd-apk/lists"}