-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Scott Trent <[email protected]>
- Loading branch information
Showing
14 changed files
with
80 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,4 @@ temp-prometheus.yaml | |
c3-susql-config.yaml | ||
nohup.out | ||
.env | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
experimentation... |
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
samples/impact-framework/offClusterApproach/.trent/pi1/pi1test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: prometheus importer test | ||
description: simple susql demo invoking prometheus-importer plugin | ||
tags: null | ||
initialize: | ||
plugins: | ||
prometheus-importer: | ||
method: PrometheusImporter | ||
path: 'https://github.com/Shivani-G/prometheus-importer' | ||
global-config: | ||
step: '1h' | ||
start: '2024-09-16T23:50:30.000Z' | ||
end: '2024-10-16T00:00:30.000Z' | ||
query: 'rate(susql_container_joules_total)[1m])' | ||
metricLabels: | ||
- name | ||
metricName: 'energy' | ||
defaultLabels: | ||
duration: 3600 | ||
cloud/vendor: 'ibm' | ||
cloud/instance-type: 'medium' | ||
outputs: | ||
- yaml | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- prometheus-importer | ||
inputs: |
20 changes: 20 additions & 0 deletions
20
samples/impact-framework/offClusterApproach/.trent/pi1/steps.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# in this directory | ||
npm init -y | ||
npm install -g husky | ||
npm install -g @grnsft/if | ||
# npm remove -g "https://github.com/trent-s/prometheus-importer" | ||
npm remove -g prometheus-importer | ||
npm remove prometheus-importer | ||
npm install -g "https://github.com/Shivani-G/prometheus-importer" | ||
npm update | ||
echo "BEARER_TOKEN="$(oc whoami -t) >.env | ||
echo HOST=https://$(oc get routes -n openshift-monitoring thanos-querier -o jsonpath='{.status.ingress[0].host}') >>.env | ||
if-run --manifest pi1test.yaml --debug | ||
|
||
|
||
|
||
|
||
## troubleshootign | ||
# npm cache verify | ||
# npm install npm@latest -g | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
samples/impact-framework/offClusterApproach/test/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,20 +19,6 @@ npm install -g [email protected] && \ | |
echo " --- Finished node update" && \ | ||
npm install -g typescript rimraf husky @grnsft/if && \ | ||
echo " --- Finished if install" && \ | ||
# npm install -g @types/node && \ | ||
# echo " --- Finished @types/node install" && \ | ||
# git clone https://github.com/Green-Software-Foundation/if.git && cd if && npm install -g && npm install && npm link && cd - && \ | ||
# echo " --- Finished IF npm link" && \ | ||
# npm install -g "https://github.com/trent-s/prometheus-importer" && \ | ||
# echo " --- Finished PI install" && \ | ||
# git clone https://github.com/trent-s/prometheus-importer.git && cd prometheus-importer && \ | ||
# npm install --save-dev @types/node && npm run build && npm install -g && npm install && npm link && cd - && \ | ||
# echo " --- Finished cloning PI" && \ | ||
# npm install -g "https://github.com/trent-s/hello-plugin" && \ | ||
# git clone https://github.com/trent-s/hello-plugin.git && cd hello-plugin && \ | ||
# npm install --save-dev @types/node && npm run build && npm install -g && npm install && npm link && cd - && \ | ||
# cd if && npm link hello-plugin && cd - && \ | ||
# echo " --- Finished cloning and initializing hello-plugin" && \ | ||
# cd if && npm link prometheus-importer && cd - && \ | ||
# echo " --- Finished last link " && \ | ||
npm install -g "https://github.com/Shivani-G/prometheus-importer" && \ | ||
echo " --- Finished PI install" && \ | ||
chown -R 1000:1000 /work /usr/local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters