{"action":"created","issue":{"url":"https://api.github.com/repos/micrometer-metrics/micrometer/issues/351","repository_url":"https://api.github.com/repos/micrometer-metrics/micrometer","labels_url":"https://api.github.com/repos/micrometer-metrics/micrometer/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/micrometer-metrics/micrometer/issues/351/comments","events_url":"https://api.github.com/repos/micrometer-metrics/micrometer/issues/351/events","html_url":"https://github.com/micrometer-metrics/micrometer/issues/351","id":289122816,"number":351,"title":"@Timed not working with Spring Boot 2.0.0.M7","user":{"login":"jmirc","id":50304,"avatar_url":"https://avatars0.githubusercontent.com/u/50304?v=4","gravatar_id":"","url":"https://api.github.com/users/jmirc","html_url":"https://github.com/jmirc","followers_url":"https://api.github.com/users/jmirc/followers","following_url":"https://api.github.com/users/jmirc/following{/other_user}","gists_url":"https://api.github.com/users/jmirc/gists{/gist_id}","starred_url":"https://api.github.com/users/jmirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmirc/subscriptions","organizations_url":"https://api.github.com/users/jmirc/orgs","repos_url":"https://api.github.com/users/jmirc/repos","events_url":"https://api.github.com/users/jmirc/events{/privacy}","received_events_url":"https://api.github.com/users/jmirc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/micrometer-metrics/micrometer/milestones/20","html_url":"https://github.com/micrometer-metrics/micrometer/milestone/20","labels_url":"https://api.github.com/repos/micrometer-metrics/micrometer/milestones/20/labels","id":3067418,"number":20,"title":"1.0.0-rc.8","description":"","creator":{"login":"jkschneider","id":1697736,"avatar_url":"https://avatars2.githubusercontent.com/u/1697736?v=4","gravatar_id":"","url":"https://api.github.com/users/jkschneider","html_url":"https://github.com/jkschneider","followers_url":"https://api.github.com/users/jkschneider/followers","following_url":"https://api.github.com/users/jkschneider/following{/other_user}","gists_url":"https://api.github.com/users/jkschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/jkschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkschneider/subscriptions","organizations_url":"https://api.github.com/users/jkschneider/orgs","repos_url":"https://api.github.com/users/jkschneider/repos","events_url":"https://api.github.com/users/jkschneider/events{/privacy}","received_events_url":"https://api.github.com/users/jkschneider/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":24,"state":"closed","created_at":"2018-01-26T21:01:45Z","updated_at":"2018-02-02T15:34:15Z","due_on":"2018-01-29T08:00:00Z","closed_at":"2018-01-30T21:04:09Z"},"comments":3,"created_at":"2018-01-17T02:30:37Z","updated_at":"2018-02-08T21:51:51Z","closed_at":"2018-01-17T02:38:56Z","author_association":"NONE","body":"Hi,\r\n\r\nI created a simple project with these dependencies\r\n\r\n```\r\n<dependency>\r\n  <groupId>org.springframework.boot</groupId>\r\n  <artifactId>spring-boot-starter-actuator</artifactId>\r\n</dependency>\r\n<dependency>\r\n  <groupId>io.micrometer</groupId>\r\n  <artifactId>micrometer-core</artifactId>\r\n</dependency>\r\n<dependency>\r\n  <groupId>org.springframework.boot</groupId>\r\n  <artifactId>spring-boot-starter-webflux</artifactId>\r\n</dependency>\r\n```\r\n\r\nAnd create a simple Controller\r\n\r\n```\r\n@RestController\r\npublic class DemoController {\r\n\r\n    private Random random = new Random();\r\n\r\n    @GetMapping(\"/\")\r\n    @Timed\r\n    public String calculateTimed() throws InterruptedException {\r\n        Thread.sleep(random.nextInt(1000));\r\n        return \"This is a test\";\r\n    }\r\n}\r\n```\r\n\r\nAnd I am expected to see the timed metric when I called `/actuator/metrics` but I didn't get anything\r\n\r\nHere is the result to http://localhost:9999/actuator/metrics\r\n```\r\n{\r\nnames: [\r\n\"jvm.buffer.memory.used\",\r\n\"jvm.memory.used\",\r\n\"jvm.buffer.count\",\r\n\"logback.events\",\r\n\"process.uptime\",\r\n\"jvm.memory.committed\",\r\n\"system.load.average.1m\",\r\n\"jvm.buffer.total.capacity\",\r\n\"jvm.memory.max\",\r\n\"system.cpu.count\",\r\n\"http.server.requests\",\r\n\"process.start.time\"\r\n]\r\n}\r\n```\r\n\r\nDo I need to add an additional dependency?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/micrometer-metrics/micrometer/issues/comments/364260405","html_url":"https://github.com/micrometer-metrics/micrometer/issues/351#issuecomment-364260405","issue_url":"https://api.github.com/repos/micrometer-metrics/micrometer/issues/351","id":364260405,"user":{"login":"jkschneider","id":1697736,"avatar_url":"https://avatars2.githubusercontent.com/u/1697736?v=4","gravatar_id":"","url":"https://api.github.com/users/jkschneider","html_url":"https://github.com/jkschneider","followers_url":"https://api.github.com/users/jkschneider/followers","following_url":"https://api.github.com/users/jkschneider/following{/other_user}","gists_url":"https://api.github.com/users/jkschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/jkschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkschneider/subscriptions","organizations_url":"https://api.github.com/users/jkschneider/orgs","repos_url":"https://api.github.com/users/jkschneider/repos","events_url":"https://api.github.com/users/jkschneider/events{/privacy}","received_events_url":"https://api.github.com/users/jkschneider/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T21:51:51Z","updated_at":"2018-02-08T21:51:51Z","author_association":"CONTRIBUTOR","body":"@kleino By `/metrics`, are you implying this is a Boot 1.5.x app you are working on?\r\n\r\nIf so, we backport Micrometer support to 1.5.x, but do not replace the old Boot 1.5.x metrics at the same time. So what shows up in `/metrics` in Boot 1.5.x is whatever showed up there as a consequence of Boot's existing code.\r\n\r\nYour `my.awesome.timer` does show up in monitoring systems that Micrometer is exporting to with the `micrometer-spring-legacy` backport applied, however."}}
{"actor":{"display_login":"jkschneider"}}