Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
28f89098
Commit
28f89098
authored
May 28, 2015
by
Bertrand Renuart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for periods in metric name (see gh354)
parent
8bb578ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DefaultServoMetricNaming.java
...amework/cloud/netflix/servo/DefaultServoMetricNaming.java
+2
-2
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/servo/DefaultServoMetricNaming.java
View file @
28f89098
...
...
@@ -48,7 +48,7 @@ public class DefaultServoMetricNaming implements ServoMetricNaming {
private
String
handleMetric
(
MonitorConfig
config
,
TagList
tags
)
{
String
type
=
cleanValue
(
tags
.
getTag
(
DataSourceType
.
KEY
),
false
);
String
instanceName
=
cleanValue
(
tags
.
getTag
(
"instance"
),
false
);
String
name
=
cleanupIllegalCharacters
(
config
.
getName
(),
fals
e
);
String
name
=
cleanupIllegalCharacters
(
config
.
getName
(),
tru
e
);
String
statistic
=
cleanValue
(
tags
.
getTag
(
"statistic"
),
false
);
StringBuilder
nameBuilder
=
new
StringBuilder
();
...
...
@@ -74,7 +74,7 @@ public class DefaultServoMetricNaming implements ServoMetricNaming {
String
domain
=
cleanValue
(
tags
.
getTag
(
JMX_DOMAIN_KEY
),
true
);
String
type
=
cleanValue
(
tags
.
getTag
(
"Jmx.type"
),
false
);
String
instanceName
=
cleanValue
(
tags
.
getTag
(
"Jmx.instance"
),
false
);
String
name
=
cleanValue
(
tags
.
getTag
(
"Jmx.name"
),
fals
e
);
String
name
=
cleanValue
(
tags
.
getTag
(
"Jmx.name"
),
tru
e
);
String
fieldName
=
cleanupIllegalCharacters
(
config
.
getName
(),
false
);
StringBuilder
nameBuilder
=
new
StringBuilder
();
...
...
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