Fix bash scrape script
This commit is contained in:
parent
5531c323f4
commit
d60e818efa
@ -9,7 +9,7 @@ REPOS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TMP_DIR = ".tmp-repos"
|
TMP_DIR = ".tmp-repos"
|
||||||
OUTPUT_FILE = "observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml"
|
OUTPUT_FILE = ".tmp-repos/observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml"
|
||||||
|
|
||||||
os.makedirs(TMP_DIR, exist_ok=True)
|
os.makedirs(TMP_DIR, exist_ok=True)
|
||||||
|
|
||||||
|
|||||||
@ -13,10 +13,6 @@ done
|
|||||||
echo "⚙️ Generating additional-scrape-configs.yaml..."
|
echo "⚙️ Generating additional-scrape-configs.yaml..."
|
||||||
python3 automation/generate-scrape-config.py
|
python3 automation/generate-scrape-config.py
|
||||||
|
|
||||||
echo "📦 Copying into observability-stack repo..."
|
|
||||||
cp observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml \
|
|
||||||
.tmp-repos/observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml
|
|
||||||
|
|
||||||
cd .tmp-repos/observability-stack
|
cd .tmp-repos/observability-stack
|
||||||
git config user.name "auto-sync"
|
git config user.name "auto-sync"
|
||||||
git config user.email "sync@dvirlabs.com"
|
git config user.email "sync@dvirlabs.com"
|
||||||
@ -28,3 +24,5 @@ else
|
|||||||
git commit -m "auto: update Prometheus scrape config"
|
git commit -m "auto: update Prometheus scrape config"
|
||||||
git push origin master
|
git push origin master
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cat .tmp-repos/observability-stack/manifests/prometheus-scrape-secret/additional-scrape-configs.yaml
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user