Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
e2cb5349
Commit
e2cb5349
authored
Feb 16, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge micrometer docs
Closes gh-11930
parent
03a6f97e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
400 additions
and
46 deletions
+400
-46
index.adoc
...oot-project/spring-boot-docs/src/main/asciidoc/index.adoc
+1
-0
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+354
-46
1.png
...t/spring-boot-docs/src/main/docbook/images/callouts/1.png
+0
-0
2.png
...t/spring-boot-docs/src/main/docbook/images/callouts/2.png
+0
-0
3.png
...t/spring-boot-docs/src/main/docbook/images/callouts/3.png
+0
-0
SampleBean.java
...springframework/boot/docs/actuate/metrics/SampleBean.java
+45
-0
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/index.adoc
View file @
e2cb5349
...
@@ -68,6 +68,7 @@ Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson;
...
@@ -68,6 +68,7 @@ Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson;
:hibernate-documentation: https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html
:hibernate-documentation: https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x
:micrometer-concepts-documentation: https://micrometer.io/docs/concepts
:micrometer-concepts-documentation: https://micrometer.io/docs/concepts
:micrometer-registry-documentation: http://micrometer.io/docs/registry
:tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc
:tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc
:kotlin-documentation: https://kotlinlang.org/docs/reference/
:kotlin-documentation: https://kotlinlang.org/docs/reference/
:junit5-documentation: https://junit.org/junit5/docs/current/user-guide
:junit5-documentation: https://junit.org/junit5/docs/current/user-guide
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
e2cb5349
This diff is collapsed.
Click to expand it.
spring-boot-project/spring-boot-docs/src/main/docbook/images/callouts/1.png
0 → 100644
View file @
e2cb5349
329 Bytes
spring-boot-project/spring-boot-docs/src/main/docbook/images/callouts/2.png
0 → 100644
View file @
e2cb5349
353 Bytes
spring-boot-project/spring-boot-docs/src/main/docbook/images/callouts/3.png
0 → 100644
View file @
e2cb5349
350 Bytes
spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/actuate/metrics/SampleBean.java
0 → 100644
View file @
e2cb5349
/*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
docs
.
actuate
.
metrics
;
import
io.micrometer.core.instrument.Counter
;
import
io.micrometer.core.instrument.MeterRegistry
;
import
org.springframework.stereotype.Component
;
/**
* Example to show manual usage of {@link MeterRegistry}.
*
* @author Stephane Nicoll
*/
// tag::example[]
@Component
public
class
SampleBean
{
private
final
Counter
counter
;
public
SampleBean
(
MeterRegistry
registry
)
{
this
.
counter
=
registry
.
counter
(
"received.messages"
);
}
public
void
handleMessage
(
String
message
)
{
this
.
counter
.
increment
();
// handle message implementation
}
}
// end::example[]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment