Skip to content

Commit

Permalink
chore: remove lc_scraper for auto metrics (#1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
catdogpandas authored Nov 20, 2024
1 parent 7342a22 commit 4030fd3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ void ProcessorPromRelabelMetricNative::AddMetric(PipelineEventGroup& metricGroup
metricEvent->SetValue<UntypedSingleValue>(value);
metricEvent->SetTimestamp(timestamp, nanoSec);
metricEvent->SetTag(prometheus::NAME, name);
metricEvent->SetTag(prometheus::LC_SCRAPER, mLoongCollectorScraper);
for (const auto& [k, v] : targetTags) {
metricEvent->SetTag(k, v);
}
Expand Down
1 change: 0 additions & 1 deletion core/prometheus/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ const char* const SCRAPE_SAMPLES_POST_METRIC_RELABELING = "scrape_samples_post_m
const char* const SCRAPE_SAMPLES_SCRAPED = "scrape_samples_scraped";
const char* const SCRAPE_TIMEOUT_SECONDS = "scrape_timeout_seconds";
const char* const UP = "up";
const char* const LC_SCRAPER = "lc_scraper";

const char* const SCRAPE_TIMESTAMP_MILLISEC = "scrape_timestamp_millisec";

Expand Down

0 comments on commit 4030fd3

Please sign in to comment.