Skip to content

Commit

Permalink
Merge pull request #115 from trent-s/main
Browse files Browse the repository at this point in the history
docs: fix heredoc syntax
  • Loading branch information
marceloamaral authored Oct 31, 2023
2 parents 789441f + 72bebf8 commit 5ed913c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/installation/kepler-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ For `kube-prometheus` to scrape `kepler-exporter` service endpoint you need to c
> Note: By default `kube-prometheus` does not let you scrape services deployed in namespaces other than `monitoring`. So if you are running Kepler outside `monitoring` [follow this to set up Prometheus to scrape all namespaces](#scrape-all-namespaces).
```
kubectl apply -n monitoring -f - <<
kubectl apply -n monitoring -f - << EOF
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
2 changes: 1 addition & 1 deletion docs/installation/kepler-operator.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ kubectl port-forward svc/grafana 3000:3000 -n monitoring
> Note: 默认情况下`kube-prometheus` 不会捕捉`monitoring`命名空间之外的服务. 如果您的kepler部署在`monitoring`空间之外[请看考以下步骤](#scrape-all-namespaces).
```
kubectl apply -n monitoring -f - <<
kubectl apply -n monitoring -f - << EOF
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
2 changes: 1 addition & 1 deletion docs/installation/kepler.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ cd kube-prometheus
```sh
KEPLER_EXPORTER_GRAFANA_DASHBOARD_JSON=`curl -fsSL https://raw.githubusercontent.com/sustainable-computing-io/kepler/main/grafana-dashboards/Kepler-Exporter.json | sed '1 ! s/^/ /'`
mkdir -p grafana-dashboards
cat > ./grafana-dashboards/kepler-exporter-configmap.yaml<<-EOF
cat - > ./grafana-dashboards/kepler-exporter-configmap.yaml << EOF
apiVersion: v1
data:
kepler-exporter.json: |-
Expand Down

0 comments on commit 5ed913c

Please sign in to comment.