Skip to content

Commit

Permalink
chores
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Dec 9, 2024
1 parent e7d8962 commit 3d83b62
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
</architectures>
<packages>
<package>
<name>prometheus-2.54.0.linux-amd64.tar.gz</name>
<checksum>SHA-256:465e1393a0cca9705598f6ffaf96ffa78d0347808ab21386b0c6aaec2cf7aa13</checksum>
<name>grafana-enterprise-11.4.0.linux-amd64.tar.gz</name>
<checksum>SHA-256:1334ef2e4232fdf5443542c6fa9b5abe25720edbf03363aa9f2d5147ba231fae</checksum>
</package>
</packages>
</package-specific>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ public Map<String, T> getSPIMap() {

private void resolveConflict(T newSPI) {
T oldSPI = map.get(newSPI.getName());
log.info(String.valueOf(oldSPI.getPriority()));
log.info(String.valueOf(oldSPI.getName()));
log.info(String.valueOf(newSPI.getName()));

if (newSPI.compareTo(oldSPI.getPriority()) == 0) {
throw new IllegalArgumentException(String.format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public ShellResult stop(Params params) {
public ShellResult status(Params params) {
GrafanaParams grafanaParams = (GrafanaParams) params;
String cmd = MessageFormat.format("pgrep -f {0}/bin/grafana", grafanaParams.serviceHome());
log.info(cmd);
try {
ShellResult result = LinuxOSUtils.execCmd(cmd);
if (result.getExitCode() == 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public static ShellResult config(Params params) {

LinuxFileUtils.createDirectories(prometheusParams.dataDir(), user, group, Constants.PERMISSION_755, true);

return ShellResult.success("Prometheus Configure success!");
return ShellResult.success("Grafana Configure success!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.util.Properties;

@AutoService(Script.class)
@Slf4j
public class PrometheusServerScript extends AbstractServerScript {

@Override
Expand All @@ -55,7 +54,6 @@ public ShellResult start(Params params) {
String cmd = MessageFormat.format(
"nohup {0}/prometheus --config.file={0}/prometheus.yml --storage.tsdb.path={0}/data > {0}/nohup.out 2>&1 &",
prometheusParams.serviceHome());
log.info(cmd);
try {
ShellResult shellResult = LinuxOSUtils.sudoExecCmd(cmd, prometheusParams.user());
if (shellResult.getExitCode() != 0) {
Expand Down

0 comments on commit 3d83b62

Please sign in to comment.