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

Adds notes to Helm deployment that give Prometheus configuration instructions #474

Merged
merged 4 commits into from
Mar 29, 2019

Conversation

lee0c
Copy link
Contributor

@lee0c lee0c commented Mar 28, 2019

Proposed Changes

  • Deployment notes include something like:
3. To set up Prometheus in your cluster & pull in metrics from Promitor's scraping output, run:

export CLUSTER_IP=$(kubectl get svc --namespace default -l "app=promitor-scraper,release=punk-rattlesnake" -o jsonpath="{.items[0].spec.clusterIP}")
cat > promitor-scrape-config.yaml <<EOF
extraScrapeConfigs: |
  - job_name: punk-rattlesnake
    metrics_path: /prometheus/scrape
    static_configs:
      - targets:
        - $CLUSTER_IP:80
EOF
helm install stable/prometheus -f promitor-scrape-config.yaml

@lee0c lee0c force-pushed the prometheus-config branch from 9613b66 to cd3eae9 Compare March 28, 2019 20:45
Copy link
Contributor

@brusMX brusMX left a comment

Choose a reason for hiding this comment

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

Awesome!

@brusMX brusMX merged commit 9fafad8 into tomkerkhove:master Mar 29, 2019
@lee0c lee0c deleted the prometheus-config branch March 29, 2019 18:20
@tomkerkhove
Copy link
Owner

I really love this one, thanks @lee0c !

@tomkerkhove tomkerkhove added this to the v1.0.0 milestone Apr 1, 2019
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