{"id":19034155,"url":"https://github.com/aurasphere/jmx-metrics-filter","last_synced_at":"2026-05-16T06:35:43.525Z","repository":{"id":57716245,"uuid":"219789119","full_name":"aurasphere/jmx-metrics-filter","owner":"aurasphere","description":"Servlet filter implementation for extracting metrics and exposing them on JMX","archived":false,"fork":false,"pushed_at":"2020-09-07T23:16:52.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-11T05:31:09.834Z","etag":null,"topics":["dropwizard-metrics","jmx","metrics","micrometer","servlet-container","servlet-filter","spring-boot","web-application"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aurasphere.png","metadata":{"files":{"readme":"README.md","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":"2019-11-05T16:16:28.000Z","updated_at":"2020-09-07T23:16:54.000Z","dependencies_parsed_at":"2022-08-25T09:20:51.741Z","dependency_job_id":null,"html_url":"https://github.com/aurasphere/jmx-metrics-filter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aurasphere/jmx-metrics-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurasphere%2Fjmx-metrics-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurasphere%2Fjmx-metrics-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurasphere%2Fjmx-metrics-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurasphere%2Fjmx-metrics-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aurasphere","download_url":"https://codeload.github.com/aurasphere/jmx-metrics-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurasphere%2Fjmx-metrics-filter/sbom","scorecard":{"id":216396,"data":{"date":"2025-08-11","repo":{"name":"github.com/aurasphere/jmx-metrics-filter","commit":"5397a98ba8d5cecb0127c0f4fedf1f962f4860d3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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"}},{"name":"Code-Review","score":0,"reason":"Found 1/16 approved changesets -- score normalized to 0","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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":-1,"reason":"No tokens found","details":null,"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":"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":"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":"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":"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: MIT License: 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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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":"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"}}]},"last_synced_at":"2025-08-17T01:43:52.452Z","repository_id":57716245,"created_at":"2025-08-17T01:43:52.453Z","updated_at":"2025-08-17T01:43:52.453Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dropwizard-metrics","jmx","metrics","micrometer","servlet-container","servlet-filter","spring-boot","web-application"],"created_at":"2024-11-08T21:43:40.360Z","updated_at":"2026-05-16T06:35:43.496Z","avatar_url":"https://github.com/aurasphere.png","language":"Java","funding_links":["https://www.paypal.com/donate/?cmd=_donations\u0026business=8UK2BZP2K8NSS"],"categories":[],"sub_categories":[],"readme":"[![Travis](https://img.shields.io/travis/aurasphere/jmx-metrics-filter.svg)](https://travis-ci.org/aurasphere/jmx-metrics-filter)\n[![Maven Central](https://img.shields.io/maven-central/v/co.aurasphere.metrics/jmx-metrics-filter-jdk5.svg)](https://search.maven.org/artifact/co.aurasphere.metrics/jmx-metrics-filter-jdk5/1.0.0/jar)\n[![Javadocs](http://javadoc.io/badge/co.aurasphere.metrics/jmx-metrics-filter-jdk5.svg)](http://javadoc.io/doc/co.aurasphere.metrics/jmx-metrics-filter-jdk5)\n[![Maintainability](https://api.codeclimate.com/v1/badges/43d564cf9ee6e93d8391/maintainability)](https://codeclimate.com/github/aurasphere/jmx-metrics-filter/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/43d564cf9ee6e93d8391/test_coverage)](https://codeclimate.com/github/aurasphere/jmx-metrics-filter/test_coverage)\n[![Join the chat at https://gitter.im/jmx-metrics-filter/community](https://badges.gitter.im/jmx-metrics-filter/community.svg)](https://gitter.im/jmx-metrics-filter/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-orange.svg)](https://www.paypal.com/donate/?cmd=_donations\u0026business=8UK2BZP2K8NSS)\n\n# JMX Metrics Filter\n\nServlet filter implementation for extracting metrics and exposing them on JMX. The filter will expose a bean for each combination of endpoint/HTTP status code with the invocation time stats (average, minimum, maximum...). \n\nTwo artifacts are provided:\n - **jmx-metrics-filter-jdk8**, backward compatibile with Java 8, based on [micrometer.io](http://micrometer.io)\n - **jmx-metrics-filter-jdk5**, backward compatibile with Java 5, based on [metrics.dropwizard.io](https://metrics.dropwizard.io)\n \n## Usage\nTo import the library using Maven, add this to your `pom.xml` (changing the * with the version you want to use):\n \n    \u003cdependency\u003e\n        \u003cgroupId\u003eco.aurasphere.metrics\u003c/groupId\u003e\n        \u003cartifactId\u003ejmx-metrics-filter-jdk*\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n \n### Web application\nTo use the filter in a web application, add it on your `web.xml`:\n \n    \u003cfilter\u003e\n        \u003cfilter-name\u003emetrics-filter\u003c/filter-name\u003e\n        \u003cfilter-class\u003eco.aurasphere.metrics.jdk*.JmxMetricsFilter\u003c/filter-class\u003e\n    \u003c/filter\u003e\n    \u003cfilter-mapping\u003e\n        \u003cfilter-name\u003emetrics-filter\u003c/filter-name\u003e\n        \u003curl-pattern\u003e/*\u003c/url-pattern\u003e\n    \u003c/filter-mapping\u003e\n \n ### Servlet container\n To use the filter in a Servlet container, you have to manually add the jar and their dependencies to the container classpath:\n \n | jmx-metrics-filter-jdk5 | jmx-metrics-filter-jdk8 |\n|:-------------:|:-------------:|\n| slf4j-api-1.7.26.jar | slf4j-api-1.7.26.jar |\n| LatencyUtils-2.0.3.jar | LatencyUtils-2.0.3.jar |\n| metrics-core-3.2.6.jar | metrics-core-4.0.3.jar |\n| metrics-jmx-3.2.6.jar | metrics-jmx-4.0.3.jar |\n| | micrometer-core-1.1.4.jar |\n| | micrometer-registry-jmx-1.1.4.jar |\n \n Then, you have to register the filter on the container. Follows an example on Tomcat:\n \n    \u003cfilter\u003e\n        \u003cfilter-name\u003emetrics-filter\u003c/filter-name\u003e\n        \u003cfilter-class\u003eco.aurasphere.metrics.jdk*.JmxMetricsFilter\u003c/filter-class\u003e\n        \u003cinit-param\u003e\n            \u003cparam-name\u003econtexts\u003c/param-name\u003e\n            \u003cparam-value\u003e/web-test,/web-test-2\u003c/param-value\u003e\n        \u003c/init-param\u003e\n        \u003cinit-param\u003e\n            \u003cparam-name\u003ewhitelist\u003c/param-name\u003e\n            \u003cparam-value\u003etrue\u003c/param-value\u003e\n        \u003c/init-param\u003e\n    \u003c/filter\u003e\n    \u003cfilter-mapping\u003e\n        \u003cfilter-name\u003emetrics-filter\u003c/filter-name\u003e\n        \u003curl-pattern\u003e*.html\u003c/url-pattern\u003e\n        \u003curl-pattern\u003e*.do\u003c/url-pattern\u003e\n        \u003curl-pattern\u003e/*\u003c/url-pattern\u003e\n    \u003c/filter-mapping\u003e\n    \nWhen using the filter on a container, you can tweak it further with the following `init-param`:\n - **contexts**, a list of comma-separed of web application contexts intercepted by this filter. If not specified, the filter will intercept requests on every context.\n - **whitelist**, specifies whether or not the specified contexts should be the only ones intercepted (true) or the only ones excluded by the filter (false). Defaults to true if not specified.\n\n ### Spring Boot\n To use the filter in a Spring Boot application, simply register the filter as a bean:\n \n    @Bean\n    public Filter jmxMetricsFilter() {\n        return new JmxMetricsFilter();\n    }\n\n\u003csub\u003eCopyright (c) 2019 Donato Rimenti\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurasphere%2Fjmx-metrics-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faurasphere%2Fjmx-metrics-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurasphere%2Fjmx-metrics-filter/lists"}