{"id":24897151,"url":"https://github.com/eiiches/java-procfs-mbeans-agent","last_synced_at":"2025-08-26T09:06:07.034Z","repository":{"id":49965374,"uuid":"112098978","full_name":"eiiches/java-procfs-mbeans-agent","owner":"eiiches","description":"Java agent to make /proc metrics available as MXBeans","archived":false,"fork":false,"pushed_at":"2021-06-07T17:12:29.000Z","size":109,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-07-20T00:09:22.848Z","etag":null,"topics":["java","java-agent","jmx","linux","metrics","monitoring","procfs"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/eiiches.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":"2017-11-26T16:37:39.000Z","updated_at":"2023-01-04T10:41:35.000Z","dependencies_parsed_at":"2022-08-24T12:51:04.933Z","dependency_job_id":null,"html_url":"https://github.com/eiiches/java-procfs-mbeans-agent","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/eiiches/java-procfs-mbeans-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiiches%2Fjava-procfs-mbeans-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiiches%2Fjava-procfs-mbeans-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiiches%2Fjava-procfs-mbeans-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiiches%2Fjava-procfs-mbeans-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiiches","download_url":"https://codeload.github.com/eiiches/java-procfs-mbeans-agent/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiiches%2Fjava-procfs-mbeans-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272200568,"owners_count":24890816,"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-08-26T02:00:07.904Z","response_time":60,"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":["java","java-agent","jmx","linux","metrics","monitoring","procfs"],"created_at":"2025-02-01T20:16:38.700Z","updated_at":"2025-08-26T09:06:06.990Z","avatar_url":"https://github.com/eiiches.png","language":"Java","readme":"java-procfs-mbeans-agent\n========================\n\nJava agent to make /proc metrics available as MXBeans, which is mainly intended for use with [java-prometheus-metrics-agent](https://github.com/eiiches/java-prometheus-metrics-agent) to send /proc metrics to Prometheus.\n\n**WARNING** (2017-11-27) I just started this project and should not be considered production-ready yet. Also, I'm developing this on linux 4.13 so might not work well on older kernels for now.\n\nProject status\n--------------\n\nAs of now (2020-01-12), I consider this project a failure due to the following reasons:\n\n* Extra layers in observability (/proc -\u003e MBeans -\u003e Prometheus format) makes it harder to reach and dig into kernel code that produces the metric. Moreover, this wastes CPU and other resources.\n* JVM has GC. If JVM stops due to long GC or something, metrics become unavailable, which is not good. We then have to investigate why they are missing.\n* Kubernetes now has sharedProcessNamespaces. When enabled, process-specific (/proc/self/io, etc.) and namespaced metrics are accessible from other containers in a Pod. It's better to add an exporter sidecar that scrapes /proc/PID/io, etc.\n* This agent cannot be used for non-JVM apps. I'm sure using a separate tool for non-JVM apps will be a headache because of different metric names, etc.\n\nOnce I find a better alternative for my use (or build one myself), this repository will be archived.\n\nInstallation\n------------\n\n#### Building from source\n\n```sh\ngit clone https://github.com/eiiches/java-procfs-mbeans-agent.git\ncd java-procfs-mbeans-agent\nmvn clean package\n```\n\nThen, copy `target/java-procfs-mbeans-agent-{version}.jar` to your desired location.\n\n#### Downloading from Maven Central\n\n```sh\ncurl -O 'https://repo1.maven.org/maven2/net/thisptr/java-procfs-mbeans-agent/0.0.4/java-procfs-mbeans-agent-0.0.4.jar'\n```\n\nUsage\n-----\n\n```sh\njava -javaagent:/path/to/java-procfs-mbeans-agent-$VERSION.jar ...\n```\n\n![visualvm](docs/visualvm.png)\n\nCurrent Status\n--------------\n\n| path                         | status | requirements       |\n|------------------------------|--------|--------------------|\n| /proc/buddyinfo              | DONE   |                    |\n| /proc/cpuinfo                |        |                    |\n| /proc/diskstats              | DONE   |                    |\n| /proc/interrupts             |        |                    |\n| /proc/loadavg                | DONE   |                    |\n| /proc/meminfo                | DONE   |                    |\n| /proc/net/dev                |        |                    |\n| /proc/net/netstat            | DONE   |                    |\n| /proc/net/snmp6              | DONE   |                    |\n| /proc/net/snmp               | DONE   |                    |\n| /proc/net/sockstat6          | DONE   |                    |\n| /proc/net/sockstat           | DONE   |                    |\n| /proc/net/stat/arp_cache     |        |                    |\n| /proc/net/stat/ndisc_cache   |        |                    |\n| /proc/net/stat/nf_conntrack  |        |                    |\n| /proc/net/stat/rt_cache      |        |                    |\n| /proc/pagetypeinfo           |        |                    |\n| /proc/schedstat              |        |                    |\n| /proc/self/io                | DONE   |                    |\n| /proc/self/stat              | DONE   |                    |\n| /proc/self/statm             | DONE   |                    |\n| /proc/self/sched             |        | CONFIG_SCHED_DEBUG |\n| /proc/slabinfo               |        |                    |\n| /proc/softirqs               | DONE   |                    |\n| /proc/stat                   | DONE   |                    |\n| /proc/swaps                  |        |                    |\n| /proc/sys/fs/aio-nr          |        |                    |\n| /proc/sys/fs/dentry-state    |        |                    |\n| /proc/sys/fs/file-nr         |        |                    |\n| /proc/sys/fs/inode-nr        |        |                    |\n| /proc/sys/fs/inode-state     |        |                    |\n| /proc/sys/kernel/pty/nr      |        |                    |\n| /proc/sys/kernel/random/entropy_avail |        |           |\n| /proc/uptime                 |        |                    |\n| /proc/vmstat                 | DONE   |                    |\n| /proc/zoneinfo               |        |                    |\n| /sys/fs/cgroup/cpu           | DONE   |                    |\n| /sys/fs/cgroup/cpuacct       | DONE   |                    |\n| /sys/fs/cgroup/memory        | DONE   |                    |\n| /sys/fs/cgroup/blkio         |        |                    |\n\nLicense\n-------\n\n[The Apache License, Version 2.0](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiiches%2Fjava-procfs-mbeans-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiiches%2Fjava-procfs-mbeans-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiiches%2Fjava-procfs-mbeans-agent/lists"}