Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Signal-Server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GitHub Mirror
Signal
Signal-Server
Commits
88c4b2be
Commit
88c4b2be
authored
Jun 7, 2021
by
Jon Chambers
Committed by
Jon Chambers
Jun 7, 2021
Browse files
Options
Downloads
Patches
Plain Diff
Correct a misunderstanding about the metrics host tag.
parent
6cbd57f1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java
+4
-3
4 additions, 3 deletions
...rg/whispersystems/textsecuregcm/WhisperServerService.java
with
4 additions
and
3 deletions
service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java
+
4
−
3
View file @
88c4b2be
...
@@ -275,7 +275,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
...
@@ -275,7 +275,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
});
});
{
{
final
String
host
;
final
String
host
name
;
{
{
String
localHostName
=
"unknown"
;
String
localHostName
=
"unknown"
;
...
@@ -285,7 +285,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
...
@@ -285,7 +285,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
}
catch
(
final
UnknownHostException
ignored
)
{
}
catch
(
final
UnknownHostException
ignored
)
{
}
}
host
=
localHostName
;
host
name
=
localHostName
;
}
}
final
DatadogMeterRegistry
datadogMeterRegistry
=
new
DatadogMeterRegistry
(
new
DatadogConfig
()
{
final
DatadogMeterRegistry
datadogMeterRegistry
=
new
DatadogMeterRegistry
(
new
DatadogConfig
()
{
...
@@ -306,13 +306,14 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
...
@@ -306,13 +306,14 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
@Override
@Override
public
String
hostTag
()
{
public
String
hostTag
()
{
return
host
;
return
"
host
"
;
}
}
},
Clock
.
SYSTEM
);
},
Clock
.
SYSTEM
);
datadogMeterRegistry
.
config
().
commonTags
(
datadogMeterRegistry
.
config
().
commonTags
(
Tags
.
of
(
Tags
.
of
(
"service"
,
"chat"
,
"service"
,
"chat"
,
"host"
,
hostname
,
"version"
,
WhisperServerVersion
.
getServerVersion
(),
"version"
,
WhisperServerVersion
.
getServerVersion
(),
"env"
,
config
.
getDatadogConfiguration
().
getEnvironment
()))
"env"
,
config
.
getDatadogConfiguration
().
getEnvironment
()))
.
meterFilter
(
MeterFilter
.
denyNameStartsWith
(
MetricsRequestEventListener
.
REQUEST_COUNTER_NAME
))
.
meterFilter
(
MeterFilter
.
denyNameStartsWith
(
MetricsRequestEventListener
.
REQUEST_COUNTER_NAME
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment