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
ab6ab0d5
Commit
ab6ab0d5
authored
Nov 11, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15134 from izeye
* pr/15134: Polish contribution Polish
parents
2c3b455b
a222952a
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
29 deletions
+26
-29
ServiceLevelAgreementBoundary.java
.../autoconfigure/metrics/ServiceLevelAgreementBoundary.java
+2
-2
PrometheusMetricsExportAutoConfiguration.java
.../prometheus/PrometheusMetricsExportAutoConfiguration.java
+1
-2
PrometheusProperties.java
...igure/metrics/export/prometheus/PrometheusProperties.java
+1
-5
PrometheusPushGatewayManager.java
...trics/export/prometheus/PrometheusPushGatewayManager.java
+4
-4
OnClassCondition.java
...mework/boot/autoconfigure/condition/OnClassCondition.java
+4
-6
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+5
-5
howto.adoc
...oot-project/spring-boot-docs/src/main/asciidoc/howto.adoc
+3
-2
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+2
-2
FilteredClassLoader.java
...pringframework/boot/test/context/FilteredClassLoader.java
+3
-0
AutoConfigureAnnotationProcessor.java
...oconfigureprocessor/AutoConfigureAnnotationProcessor.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/ServiceLevelAgreementBoundary.java
View file @
ab6ab0d5
...
...
@@ -21,7 +21,7 @@ import java.time.Duration;
import
io.micrometer.core.instrument.Meter
;
/**
* A service level agreement boundary for use when configuring
m
icrometer. Can be
* A service level agreement boundary for use when configuring
M
icrometer. Can be
* specified as either a {@link Long} (applicable to timers and distribution summaries) or
* a {@link Duration} (applicable to only timers).
*
...
...
@@ -57,7 +57,7 @@ public final class ServiceLevelAgreementBoundary {
}
/**
* Return a new {@link ServiceLevelAgreementBoundary} instance for the given
lo
ng
* Return a new {@link ServiceLevelAgreementBoundary} instance for the given
Stri
ng
* value.
* @param value the source value
* @return a {@link ServiceLevelAgreementBoundary} instance
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusMetricsExportAutoConfiguration.java
View file @
ab6ab0d5
...
...
@@ -131,8 +131,7 @@ public class PrometheusMetricsExportAutoConfiguration {
String
job
=
properties
.
getJob
();
job
=
(
job
!=
null
)
?
job
:
environment
.
getProperty
(
"spring.application.name"
);
job
=
(
job
!=
null
)
?
job
:
FALLBACK_JOB
;
return
job
;
return
(
job
!=
null
)
?
job
:
FALLBACK_JOB
;
}
}
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusProperties.java
View file @
ab6ab0d5
...
...
@@ -43,7 +43,7 @@ public class PrometheusProperties {
* Configuration options for using Prometheus Pushgateway, allowing metrics to be
* pushed when they cannot be scraped.
*/
private
Pushgateway
pushgateway
=
new
Pushgateway
();
private
final
Pushgateway
pushgateway
=
new
Pushgateway
();
/**
* Step size (i.e. reporting frequency) to use.
...
...
@@ -70,10 +70,6 @@ public class PrometheusProperties {
return
this
.
pushgateway
;
}
public
void
setPushgateway
(
Pushgateway
pushgateway
)
{
this
.
pushgateway
=
pushgateway
;
}
/**
* Configuration options for push-based interaction with Prometheus.
*/
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/prometheus/PrometheusPushGatewayManager.java
View file @
ab6ab0d5
...
...
@@ -34,7 +34,7 @@ import org.springframework.util.Assert;
import
org.springframework.util.StringUtils
;
/**
* Class that can be used to manage
d
the pushing of metrics to a {@link PushGateway
* Class that can be used to manage the pushing of metrics to a {@link PushGateway
* Prometheus PushGateway}. Handles the scheduling of push operations, error handling and
* shutdown operations.
*
...
...
@@ -115,9 +115,9 @@ public class PrometheusPushGatewayManager {
}
catch
(
UnknownHostException
ex
)
{
String
host
=
ex
.
getMessage
();
String
message
=
"Unable to locate prometheus push gateway host"
;
message
+=
StringUtils
.
hasLength
(
host
)
?
" '"
+
host
+
"'"
:
""
;
message
+=
". No longer attempting metrics publication to this host"
;
String
message
=
"Unable to locate prometheus push gateway host"
+
(
StringUtils
.
hasLength
(
host
)
?
" '"
+
host
+
"'"
:
""
)
+
". No longer attempting metrics publication to this host"
;
logger
.
error
(
message
,
ex
);
shutdown
(
ShutdownOperation
.
NONE
);
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnClassCondition.java
View file @
ab6ab0d5
...
...
@@ -213,13 +213,12 @@ class OnClassCondition extends FilteringSpringBootCondition {
private
ConditionOutcome
getOutcome
(
String
candidates
)
{
try
{
if
(!
candidates
.
contains
(
","
))
{
return
getOutcome
(
candidates
,
ClassNameFilter
.
MISSING
,
this
.
beanClassLoader
);
return
getOutcome
(
candidates
,
this
.
beanClassLoader
);
}
for
(
String
candidate
:
StringUtils
.
commaDelimitedListToStringArray
(
candidates
))
{
ConditionOutcome
outcome
=
getOutcome
(
candidate
,
ClassNameFilter
.
MISSING
,
this
.
beanClassLoader
);
this
.
beanClassLoader
);
if
(
outcome
!=
null
)
{
return
outcome
;
}
...
...
@@ -231,9 +230,8 @@ class OnClassCondition extends FilteringSpringBootCondition {
return
null
;
}
private
ConditionOutcome
getOutcome
(
String
className
,
ClassNameFilter
classNameFilter
,
ClassLoader
classLoader
)
{
if
(
classNameFilter
.
matches
(
className
,
classLoader
))
{
private
ConditionOutcome
getOutcome
(
String
className
,
ClassLoader
classLoader
)
{
if
(
ClassNameFilter
.
MISSING
.
matches
(
className
,
classLoader
))
{
return
ConditionOutcome
.
noMatch
(
ConditionMessage
.
forCondition
(
ConditionalOnClass
.
class
)
.
didNotFind
(
"required class"
).
items
(
Style
.
QUOTE
,
className
));
...
...
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
ab6ab0d5
...
...
@@ -1011,11 +1011,6 @@
<artifactId>
netty-tcnative-boringssl-static
</artifactId>
<version>
${netty-tcnative.version}
</version>
</dependency>
<dependency>
<groupId>
io.prometheus
</groupId>
<artifactId>
simpleclient_pushgateway
</artifactId>
<version>
${prometheus-pushgateway.version}
</version>
</dependency>
<dependency>
<groupId>
io.projectreactor
</groupId>
<artifactId>
reactor-bom
</artifactId>
...
...
@@ -1023,6 +1018,11 @@
<scope>
import
</scope>
<type>
pom
</type>
</dependency>
<dependency>
<groupId>
io.prometheus
</groupId>
<artifactId>
simpleclient_pushgateway
</artifactId>
<version>
${prometheus-pushgateway.version}
</version>
</dependency>
<dependency>
<groupId>
io.reactivex
</groupId>
<artifactId>
rxjava
</artifactId>
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
ab6ab0d5
...
...
@@ -2013,8 +2013,9 @@ include::{code-examples}/jpa/HibernateSecondLevelCacheExample.java[tag=configura
----
This customizer will configure Hibernate to use the same `CacheManager` as the one that
the application uses. It is also possible to use separate `CacheManager` instances, refer
to {hibernate-documentation}#caching-provider-jcache[the Hibernate user guide].
the application uses. It is also possible to use separate `CacheManager` instances. For
details, refer to {hibernate-documentation}#caching-provider-jcache[the Hibernate user
guide].
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
ab6ab0d5
...
...
@@ -1436,8 +1436,8 @@ annotation markers.
[[production-ready-metrics-export-appoptics]]
==== AppOptics
By default, the AppOptics registry pushes metrics to
https://www.appoptics.com/
periodically. To export metrics to SaaS
By default, the AppOptics registry pushes metrics to
https://api.appoptics.com/v1/measurements
periodically. To export metrics to SaaS
{micrometer-registry-documentation}/appoptics[AppOptics], your API token must be provided:
[source,properties,indent=0]
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/FilteredClassLoader.java
View file @
ab6ab0d5
...
...
@@ -62,6 +62,7 @@ public class FilteredClassLoader extends URLClassLoader {
* Create a {@link FilteredClassLoader} that hides resources from the given
* {@link ClassPathResource classpath resources}.
* @param hiddenResources the resources to hide
* @since 2.1.0
*/
public
FilteredClassLoader
(
ClassPathResource
...
hiddenResources
)
{
this
(
Collections
.
emptyList
(),
...
...
@@ -164,6 +165,8 @@ public class FilteredClassLoader extends URLClassLoader {
/**
* Filter to restrict the resources that can be loaded.
*
* @since 2.1.0
*/
public
static
final
class
ClassPathResourceFilter
implements
Predicate
<
String
>
{
...
...
spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java
View file @
ab6ab0d5
...
...
@@ -243,7 +243,7 @@ public class AutoConfigureAnnotationProcessor extends AbstractProcessor {
NamedValuesExtractor
(
String
...
names
)
{
this
.
names
=
new
HashSet
<>(
Arrays
.
asList
(
names
));
}
;
}
@Override
public
List
<
Object
>
getValues
(
AnnotationMirror
annotation
)
{
...
...
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