-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#8004] Returns whether the system metric menu is exposed.
- Loading branch information
1 parent
eed37e9
commit 7d08d69
Showing
26 changed files
with
259 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/MetricWebApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.navercorp.pinpoint.metric.web; | ||
|
||
import org.springframework.context.annotation.Import; | ||
import org.springframework.context.annotation.ImportResource; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.context.annotation.PropertySource; | ||
|
||
@ImportResource({"classpath:/pinot-web/applicationContext-web-pinot.xml"}) | ||
@PropertySource({"classpath:pinot-web/jdbc-pinot.properties"}) | ||
@ImportResource({"classpath:pinot-web/applicationContext-web-pinot.xml"}) | ||
@Import(WebMetricPropertySources.class) | ||
@Profile("metric") | ||
public class MetricWebApp { | ||
} |
34 changes: 34 additions & 0 deletions
34
...dule/metric/src/main/java/com/navercorp/pinpoint/metric/web/WebMetricPropertySources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2022 NAVER Corp. | ||
* | ||
* 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 com.navercorp.pinpoint.metric.web; | ||
|
||
/** | ||
* @author minwoo.jung | ||
*/ | ||
|
||
import org.springframework.context.annotation.PropertySource; | ||
import org.springframework.context.annotation.PropertySources; | ||
|
||
@PropertySources({ | ||
@PropertySource(name = "WebMetricPropertySources", value = {WebMetricPropertySources.METRIC}), | ||
@PropertySource(name = "WebMetricPropertySources-pinot", value = {WebMetricPropertySources.PINOT_JDBC}) | ||
}) | ||
public class WebMetricPropertySources { | ||
public static final String METRIC= "classpath:pinot-web/profiles/${pinpoint.profiles.active:release}/pinpoint-web-metric.properties"; | ||
|
||
public static final String PINOT_JDBC= "classpath:pinot-web/profiles/${pinpoint.profiles.active:release}/jdbc-pinot.properties"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...resources/pinot-web/jdbc-pinot.properties → ...-web/profiles/local/jdbc-pinot.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pinpoint.pinot.jdbc.driverClassName=org.apache.pinot.client.PinotDriver | ||
pinpoint.pinot.jdbc.url=jdbc:pinot://localhost:9000 | ||
pinpoint.pinot.jdbc.username=admin | ||
pinpoint.pinot.jdbc.password=admin | ||
pinpoint.pinot.jdbc.username=userId | ||
pinpoint.pinot.jdbc.password=password |
1 change: 1 addition & 0 deletions
1
...-module/metric/src/main/resources/pinot-web/profiles/local/pinpoint-web-metric.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config.show.systemMetric=true |
4 changes: 4 additions & 0 deletions
4
metric-module/metric/src/main/resources/pinot-web/profiles/release/jdbc-pinot.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pinpoint.pinot.jdbc.driverClassName=org.apache.pinot.client.PinotDriver | ||
pinpoint.pinot.jdbc.url=jdbc:pinot://localhost:9000 | ||
pinpoint.pinot.jdbc.username=userId | ||
pinpoint.pinot.jdbc.password=password |
1 change: 1 addition & 0 deletions
1
...odule/metric/src/main/resources/pinot-web/profiles/release/pinpoint-web-metric.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config.show.systemMetric=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
display: block; | ||
width: 100%; | ||
height: 100%; | ||
padding: 15px; | ||
} | ||
|
||
.l-main-contents { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.