{"id":20474181,"url":"https://github.com/marschall/micrometer-jfr","last_synced_at":"2025-04-13T11:32:35.416Z","repository":{"id":45465931,"uuid":"297138475","full_name":"marschall/micrometer-jfr","owner":"marschall","description":"A Micrometer meter registry that generates JFR events","archived":false,"fork":false,"pushed_at":"2025-03-01T21:58:35.000Z","size":338,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T02:43:14.391Z","etag":null,"topics":["java-flight-recorder","jdk-flight-recorder","micrometer"],"latest_commit_sha":null,"homepage":"","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/marschall.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":"2020-09-20T18:29:12.000Z","updated_at":"2025-03-04T20:27:42.000Z","dependencies_parsed_at":"2023-10-16T03:04:40.164Z","dependency_job_id":"bfe46739-af36-4015-bb80-be966a909e80","html_url":"https://github.com/marschall/micrometer-jfr","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fmicrometer-jfr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fmicrometer-jfr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fmicrometer-jfr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fmicrometer-jfr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marschall","download_url":"https://codeload.github.com/marschall/micrometer-jfr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705584,"owners_count":21148557,"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":["java-flight-recorder","jdk-flight-recorder","micrometer"],"created_at":"2024-11-15T14:28:30.592Z","updated_at":"2025-04-13T11:32:35.389Z","avatar_url":"https://github.com/marschall.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Micrometer JFR [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/micrometer-jfr/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/micrometer-jfr) [![Javadocs](https://www.javadoc.io/badge/com.github.marschall/micrometer-jfr.svg)](https://www.javadoc.io/doc/com.github.marschall/micrometer-jfr)\n==============\n\nA [Micrometer](https://micrometer.io/) meter registry that generates [JFR](https://openjdk.java.net/jeps/328) events.\n\nUsage\n-----\n\n```java\nMetrics.addRegistry(new JfrMeterRegistry());\n```\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.marschall\u003c/groupId\u003e\n  \u003cartifactId\u003emicrometer-jfr\u003c/artifactId\u003e\n  \u003cversion\u003e1.13.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n![Image of Spring Batch Micrometer JFR events](https://github.com/marschall/micrometer-jfr/raw/master/src/main/javadoc/screenshot.png)\n\nFeatures\n--------\n\n- Converts tags (key value pairs) into JFR event attributes.\n- Basic mapping from some `io.micrometer.core.instrument.binder.BaseUnits` to `jdk.jfr.ContentType`.\n- Maps `Id#getName()` and `Id#getDescription()` to `@Name` and `@Description`.\n- Stacktraces are disabled for all events for reduced overhead.\n- Generates a JFR event for every metered value.\n- A custom [naming convention](https://docs.micrometer.io/micrometer/reference/concepts/naming.html) is used to translate tag names to capitalized words.\n\nLimitations\n-----------\n\n- The built in duration of most events is 0 instead a new attribute \"Metered Duration\" is added.\n\n\nConfiguration\n-------------\n\nThe frequency of polled meters like `FunctionCounter` have to be configured in a `.jfc` file.\n\n```xml\n\u003cevent name=\"my.fcounter\"\u003e\n  \u003csetting name=\"enabled\"\u003etrue\u003c/setting\u003e\n  \u003csetting name=\"period\"\u003e5 s\u003c/setting\u003e\n\u003c/event\u003e\n```\n\nCompliance\n----------\n\nWe do not pass all tests in `MeterRegistryCompatibilityKit`. The main issue is that we do not implement histograms for `Timer`, `LongTaskTimer` and `DistributionSummary`. Instead we always generate a JFR event and let the consumer process and aggregate as desired.\n\nIn addition we do not support `PauseDetector` in `Timer`, we recommend you generate JFR events should the existing ones not be sufficient.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fmicrometer-jfr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarschall%2Fmicrometer-jfr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fmicrometer-jfr/lists"}