From 9613b6613c40ef8a038cc64b31348eb3818d6119 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Thu, 28 Mar 2019 13:18:11 -0700 Subject: [PATCH] Update NOTES.txt to include prometheus config --- .gitignore | 3 +++ charts/promitor-scraper/templates/NOTES.txt | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 charts/promitor-scraper/templates/NOTES.txt diff --git a/.gitignore b/.gitignore index 605c6d654..a60ecb6f3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,9 @@ # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs +# User-specific files created by instructions in NOTES.txt (Helm) +promitor-scrape-config.yaml + # Build results [Dd]ebug/ [Dd]ebugPublic/ diff --git a/charts/promitor-scraper/templates/NOTES.txt b/charts/promitor-scraper/templates/NOTES.txt new file mode 100755 index 000000000..1e9e7cf58 --- /dev/null +++ b/charts/promitor-scraper/templates/NOTES.txt @@ -0,0 +1,19 @@ +1. Forward the application port by running these commands: + +export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ include "promitor-scraper.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") +kubectl port-forward $POD_NAME 8080:{{ .Values.service.targetPort }} + +2. Check the scraping output at http://127.0.0.1:8080{{ .Values.scrapeConfig.path }} + +3. To set up Prometheus in your cluster & pull in metrics from Promitor's scraping output, run: + +export CLUSTER_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} -l "app={{ include "promitor-scraper.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].spec.clusterIP}") +cat > promitor-scrape-config.yaml <