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

Add prometheus scraping also for external-dns and coredns pods #876

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

jkremser
Copy link
Member

Currently, when make deploy-prometheus is run, the Prometheus scrapes only k8gb and podinfo app. This PR adds the scraping also for external-dns pod and coredns pod.

http://127.0.0.1:9081/targets (after this change):

make deploy-prometheus

...
Set annotations on pods that will be scraped by prometheus
pod/k8gb-746d98857d-7tq4d annotated
pod/external-dns-6bd44c4856-pcdt2 annotated
pod/k8gb-coredns-5bc6689949-5f8jn annotated
...


make uninstall-prometheus
...
uninstall prometheus
release "prometheus" uninstalled
pod/k8gb-746d98857d-7tq4d annotated
pod/external-dns-6bd44c4856-pcdt2 annotated
pod/k8gb-coredns-5bc6689949-5f8jn annotated
...

Screenshot 2022-04-25 at 16 19 35

Also small change to the readme, because the port was moved couple of months ago.

Signed-off-by: Jirka Kremser [email protected]

@netlify
Copy link

netlify bot commented Apr 25, 2022

Deploy Preview for k8gb-preview ready!

Name Link
🔨 Latest commit 13d3a0a
🔍 Latest deploy log https://app.netlify.com/sites/k8gb-preview/deploys/6266afd7e20aaf0008c623dd
😎 Deploy Preview https://deploy-preview-876--k8gb-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

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

fanciness 👍

Copy link
Collaborator

@kuritka kuritka left a comment

Choose a reason for hiding this comment

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

nice, good idea

Copy link
Contributor

@somaritane somaritane left a comment

Choose a reason for hiding this comment

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

Neat

@jkremser jkremser merged commit dd502f4 into k8gb-io:master Apr 25, 2022
@jkremser jkremser deleted the scrape-them-all branch April 25, 2022 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants