{"id":19509771,"url":"https://github.com/mweirauch/micrometer-jvm-extras","last_synced_at":"2025-10-25T07:39:54.652Z","repository":{"id":39634464,"uuid":"104265006","full_name":"mweirauch/micrometer-jvm-extras","owner":"mweirauch","description":"A set of additional JVM process metrics for micrometer.io.","archived":false,"fork":false,"pushed_at":"2024-11-11T12:51:44.000Z","size":145,"stargazers_count":160,"open_issues_count":3,"forks_count":20,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-26T14:40:31.345Z","etag":null,"topics":["java","jvm","metrics","micrometer"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mweirauch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-09-20T20:35:13.000Z","updated_at":"2025-04-12T15:18:41.000Z","dependencies_parsed_at":"2024-09-07T15:47:48.097Z","dependency_job_id":"768546e6-1f80-4b76-9d2e-954aa36f0879","html_url":"https://github.com/mweirauch/micrometer-jvm-extras","commit_stats":{"total_commits":127,"total_committers":6,"mean_commits":"21.166666666666668","dds":"0.35433070866141736","last_synced_commit":"4cba70e93f1e9c5f1203a6accdc6ae1b3e38c133"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mweirauch/micrometer-jvm-extras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mweirauch%2Fmicrometer-jvm-extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mweirauch%2Fmicrometer-jvm-extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mweirauch%2Fmicrometer-jvm-extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mweirauch%2Fmicrometer-jvm-extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mweirauch","download_url":"https://codeload.github.com/mweirauch/micrometer-jvm-extras/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mweirauch%2Fmicrometer-jvm-extras/sbom","scorecard":{"id":669816,"data":{"date":"2025-08-11","repo":{"name":"github.com/mweirauch/micrometer-jvm-extras","commit":"4cba70e93f1e9c5f1203a6accdc6ae1b3e38c133"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":1,"reason":"Found 3/22 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/mweirauch/micrometer-jvm-extras/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/mweirauch/micrometer-jvm-extras/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/mweirauch/micrometer-jvm-extras/ci.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":1,"reason":"SAST tool is not run on all commits -- score normalized to 1","details":["Warn: 3 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yml:14"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}}]},"last_synced_at":"2025-08-21T19:35:24.058Z","repository_id":39634464,"created_at":"2025-08-21T19:35:24.058Z","updated_at":"2025-08-21T19:35:24.058Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280923473,"owners_count":26414233,"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-25T02:00:06.499Z","response_time":81,"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","jvm","metrics","micrometer"],"created_at":"2024-11-10T23:13:16.763Z","updated_at":"2025-10-25T07:39:54.617Z","avatar_url":"https://github.com/mweirauch.png","language":"Java","funding_links":[],"categories":["指标库","\u003ca name=\"Java\"\u003e\u003c/a\u003eJava"],"sub_categories":["Spring Cloud框架"],"readme":"# micrometer-jvm-extras\n\nA set of additional JVM process metrics for [micrometer.io](https://micrometer.io/).\n\n[![Apache License 2](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/mweirauch/micrometer-jvm-extras/main/LICENSE)\n[![Build status](https://img.shields.io/github/actions/workflow/status/mweirauch/micrometer-jvm-extras/ci.yml)](https://github.com/mweirauch/micrometer-jvm-extras/actions?query=workflow%3ACI+branch%3Amain)\n[![Quality Gate Status](https://img.shields.io/sonar/alert_status/mweirauch_micrometer-jvm-extras?logo=sonarcloud\u0026server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/dashboard?id=mweirauch_micrometer-jvm-extras)\n[![Coverage](https://img.shields.io/sonar/coverage/mweirauch_micrometer-jvm-extras?logo=sonarcloud\u0026server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/dashboard?id=mweirauch_micrometer-jvm-extras)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.mweirauch/micrometer-jvm-extras.svg?maxAge=300)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.github.mweirauch%22%20AND%20a%3A%22micrometer-jvm-extras%22)\n\n## Motivation\n\n* get \"real\" memory usage of the JVM beyond its managed parts\n* get ahold of that info from within the JVM in environments where you can't\n  instrument from the outside (e.g. PaaS)\n\n## Usage\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.mweirauch\u003c/groupId\u003e\n    \u003cartifactId\u003emicrometer-jvm-extras\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```java\n    /* Plain Java */\n    final MeterRegistry registry = new SimpleMeterRegistry();\n    new ProcessMemoryMetrics().bindTo(registry);\n    new ProcessThreadMetrics().bindTo(registry);\n```\n\n```java\n    /* With Spring */\n    @Bean\n    public MeterBinder processMemoryMetrics() {\n        return new ProcessMemoryMetrics();\n    }\n\n    @Bean\n    public MeterBinder processThreadMetrics() {\n        return new ProcessThreadMetrics();\n    }\n```\n\n## Available Metrics\n\n### ProcessMemoryMetrics\n\n`ProcessMemoryMetrics` reads process-level memory information from `/proc/self/status`.\nAll `Meter`s are reporting in `bytes`.\n\n\u003e Please note that `procfs` is only available on Linux-based systems.\n\n* `process.memory.vss`: Virtual set size. The amount of virtual memory the process can access.\n  Mostly irrelevant, but included for completeness sake.\n* `process.memory.rss`: Resident set size. The amount of process memory currently in RAM.\n* `process.memory.swap`: The amount of process memory paged out to swap.\n\n### ProcessThreadMetrics\n\n`ProcessThreadMetrics` reads process-level thread information from `/proc/self/status`.\n\n\u003e Please note that `procfs` is only available on Linux-based systems.\n\n* `process.threads`: The number of process threads as seen by the operating system.\n* `process.threads.context.switches.voluntary`: The accumulated number of voluntary context switches since application start.\n  A voluntary context switch occurs when a thread is in a waiting or blocked state and the scheduler switches control to another\n  thread.\n* `process.threads.context.switches.nonvoluntary`: The accumulated number of non-voluntary context switches since application start.\n  An involuntary context switch occurs when a thread consumed the whole time slice it was granted from the scheduler. The thread is\n  suspended and control is switched to another thread.\n\n## Notes\n\n* `procfs` data is cached for `1000ms` in order to relief the filesystem pressure\n  when `Meter`s based on this data are queried by the registry one after\n  another on collection run.\n* Snapshot builds are pushed to [Sonatype Nexus Snapshot Repository](https://oss.sonatype.org/content/repositories/snapshots/io/github/mweirauch/micrometer-jvm-extras/) on successful `main` builds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmweirauch%2Fmicrometer-jvm-extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmweirauch%2Fmicrometer-jvm-extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmweirauch%2Fmicrometer-jvm-extras/lists"}