Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart: Prevent prometheus to scrape both services #1817

Merged
merged 1 commit into from Mar 18, 2020
Merged

Helm chart: Prevent prometheus to scrape both services #1817

merged 1 commit into from Mar 18, 2020

Conversation

jeanlucmongrain
Copy link
Contributor

Loki metrics port is exposed through 2 different services.

ServiceMonitor label selector match both services. Prometheus scrape both services. But this is useless... as it's the same metrics.

This PR add an extra label to the headless and switch the SM to force prometheus to scrap the headless service only

Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
@CLAassistant
Copy link

CLAassistant commented Mar 18, 2020

CLA assistant check
All committers have signed the CLA.

@jeanlucmongrain jeanlucmongrain changed the title Helm chart: Prevent prometheus to scrap both services Helm chart: Prevent prometheus to scrape both services Mar 18, 2020
@codecov-io
Copy link

Codecov Report

Merging #1817 into master will increase coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1817      +/-   ##
==========================================
+ Coverage   64.75%   64.83%   +0.07%     
==========================================
  Files         122      122              
  Lines        9228     9228              
==========================================
+ Hits         5976     5983       +7     
+ Misses       2836     2831       -5     
+ Partials      416      414       -2     
Impacted Files Coverage Δ
pkg/promtail/targets/filetarget.go 70.55% <0.00%> (+1.84%) ⬆️
pkg/promtail/targets/tailer.go 76.13% <0.00%> (+4.54%) ⬆️

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena cyriltovena merged commit ba53328 into grafana:master Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants