Skip to content

Commit

Permalink
fix setMetricRelabelConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
saimu.msm committed Aug 7, 2023
1 parent 5f796da commit 85ad38a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void upsert(OpenmetricsScraperDTO openmetricsScraperDTO) {
task.setScrapeTimeout(openmetricsScraperDTO.getScrapeTimeout());
task.setScrapePort(openmetricsScraperDTO.getPort());
task.setRelabelConfigs(openmetricsScraperDTO.getRelabelConfigs());
task.setRelabelConfigs(openmetricsScraperDTO.getMetricRelabelConfigs());
task.setMetricRelabelConfigs(openmetricsScraperDTO.getMetricRelabelConfigs());

// List<String> targets = new ArrayList<>();
//// 暂时 mock 一下
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import io.holoinsight.server.home.facade.page.MonitorPageResult;
import io.holoinsight.server.home.web.common.ManageCallback;
import io.holoinsight.server.home.web.common.ParaCheckUtil;
import io.holoinsight.server.home.web.common.TokenUrls;
import io.holoinsight.server.home.web.interceptor.MonitorScopeAuth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -30,6 +31,7 @@

@RestController
@RequestMapping("/webapi/openmetrics/scraper")
@TokenUrls("/webapi/openmetrics/scraper")
public class OpenmetricsScraperFacadeImpl extends BaseFacade {

@Autowired
Expand Down

0 comments on commit 85ad38a

Please sign in to comment.