Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
foreverneverer committed Jun 8, 2020
1 parent 8a23cab commit 6b85907
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
28 changes: 27 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,24 @@
<groupId>com.xiaomi.infra</groupId>
<artifactId>pegasus-client</artifactId>
<packaging>jar</packaging>
<version>1.12-thrift-0.11.0-inlined-SNAPSHOT</version>
<version>1.12-thrift-for-perf-0.11.0-inlined-SNAPSHOT</version>
<name>Pegasus Java Client</name>

<distributionManagement>
<repository>
<id>archiva.internal</id>
<name>Internal Release Repository</name>
<url>http://nexus.d.xiaomi.net/nexus/content/repositories/releases/
</url>
</repository>
<snapshotRepository>
<id>archiva.snapshots</id>
<name>Internal Snapshot Repository</name>
<url>http://nexus.d.xiaomi.net/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -80,6 +96,16 @@
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
<version>0.4.0</version>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_httpserver</artifactId>
<version>0.4.0</version>
</dependency>
</dependencies>
<reporting>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ private void updateLatencyMetric(
Map<String, String> labels = getLabel(getTableTag(name, defaultTags));
Snapshot snapshot = meter.getValue().getSnapshot();
updateLatencyMetric(
formatLatencyMetricName(name, "_p99"), snapshot.get99thPercentile(), labels, builder);
formatLatencyMetricName(name, "p99"), snapshot.get99thPercentile(), labels, builder);
updateLatencyMetric(
formatLatencyMetricName(name, "_p999"), snapshot.get999thPercentile(), labels, builder);
formatLatencyMetricName(name, "p999"), snapshot.get999thPercentile(), labels, builder);
}

private void updateLatencyMetric(
Expand Down

0 comments on commit 6b85907

Please sign in to comment.