mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-11-04 01:51:01 +01:00 
			
		
		
		
	kube-prometheus: Fix generate scripts
This commit is contained in:
		
							parent
							
								
									546a2e6ac6
								
							
						
					
					
						commit
						642df8ac25
					
				@ -36,7 +36,7 @@ for f in assets/grafana/generated/*-dashboard.json
 | 
			
		||||
do
 | 
			
		||||
  basefilename=$(basename $f)
 | 
			
		||||
  echo "  $basefilename: |+"
 | 
			
		||||
  if [ "$basefilename" -eq "etcd-dashboard.json" ]; then
 | 
			
		||||
  if [ "$basefilename" = "etcd-dashboard.json" ]; then
 | 
			
		||||
    hack/scripts/wrap-dashboard.sh $f prometheus-etcd | sed "s/^/    /g"
 | 
			
		||||
  else
 | 
			
		||||
    hack/scripts/wrap-dashboard.sh $f prometheus-k8s | sed "s/^/    /g"
 | 
			
		||||
 | 
			
		||||
@ -24,7 +24,7 @@ dashboardjson=$1
 | 
			
		||||
datasource_name=$2
 | 
			
		||||
inputname="DS_PROMETHEUS"
 | 
			
		||||
 | 
			
		||||
if [ "$datasource_name" -eq "prometheus-etcd" ]; then
 | 
			
		||||
if [ "$datasource_name" = "prometheus-etcd" ]; then
 | 
			
		||||
  $inputname="DS_PROMETHEUS-ETCD"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user