add generic metrics for external API#1228
Conversation
|
/ondemand create |
|
Hey @aniruddha2000, I'm managing your ondemand environment ond-yak. I've successfully transitioned from phase "preheated" to "provisioning". 👩🌾 Gardener Dashboard How to ConnectRetrieve gardenctl target --garden prd --project 74140853d0 --shoot prow-trust
kubectl ske connect ondemand ond-yakTo connect to the API, you can retrieve the Password from the export BASIC_AUTH_USERNAME=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.username}' | base64 -d)
export BASIC_AUTH_PASSWORD=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.password}' | base64 -d)
export PROJECT_ID=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.projectID}' | base64 -d)
export SNA_PROJECT_ID=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.snaProjectID}' | base64 -d)
export SKE_API=https://ske-api.ing.ond-yak.ci.ske.eu01.stackit.cloud
curl -u "$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD" "$SKE_API/v2/projects/$PROJECT_ID/regions/eu01/clusters" |
|
Hey @aniruddha2000, I'm managing your ondemand environment ond-yak. I've successfully transitioned from phase "provisioning" to "provisioned". 👩🌾 Gardener Dashboard How to ConnectRetrieve gardenctl target --garden prd --project 74140853d0 --shoot prow-trust
kubectl ske connect ondemand ond-yakTo connect to the API, you can retrieve the Password from the export BASIC_AUTH_USERNAME=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.username}' | base64 -d)
export BASIC_AUTH_PASSWORD=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.password}' | base64 -d)
export PROJECT_ID=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.projectID}' | base64 -d)
export SNA_PROJECT_ID=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.snaProjectID}' | base64 -d)
export SKE_API=https://ske-api.ing.ond-yak.ci.ske.eu01.stackit.cloud
curl -u "$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD" "$SKE_API/v2/projects/$PROJECT_ID/regions/eu01/clusters" |
|
/ondemand create --ske-base-branch=add-generic-metrics |
|
Hey @aniruddha2000, you've asked for an ondemand environment. The OnDemandEnvironment ond-yak has already been assigned to this issue/PR, so I can't allocate another. 🫣 |
|
/ondemand edit --ske-base-branch=add-generic-metrics |
|
Hey @aniruddha2000, I'm managing your ondemand environment ond-yak. I've successfully transitioned from phase "provisioned" to "provisioning". 👩🌾 Gardener Dashboard How to ConnectRetrieve gardenctl target --garden prd --project 74140853d0 --shoot prow-trust
kubectl ske connect ondemand ond-yakTo connect to the API, you can retrieve the Password from the export BASIC_AUTH_USERNAME=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.username}' | base64 -d)
export BASIC_AUTH_PASSWORD=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.password}' | base64 -d)
export PROJECT_ID=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.projectID}' | base64 -d)
export SNA_PROJECT_ID=$(kubectl get -n ondemand secret ond-yak-credentials -ojsonpath='{.data.snaProjectID}' | base64 -d)
export SKE_API=https://ske-api.ing.ond-yak.ci.ske.eu01.stackit.cloud
curl -u "$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD" "$SKE_API/v2/projects/$PROJECT_ID/regions/eu01/clusters" |
84946e8 to
276c0f7
Compare
|
/ondemand help |
|
Hi @aniruddha2000, your ondemand |
|
Hey @aniruddha2000, I'm managing your ondemand environment ond-yak. I've successfully transitioned from phase "provisioning" to "destroying". |
|
/ondemand create --ske-base-branch=add-generic-metrics |
1 similar comment
|
/ondemand create --ske-base-branch=add-generic-metrics |
|
Hey @aniruddha2000, you've asked me to delete the ondemand environment associated with this issue. I successfully destroyed the OnDemandEnvironment ond-yak. |
|
/ondemand help |
|
@aniruddha2000: The following commands are available for ondemands:
Note that by default your ondemand will be deleted when the issue/PR is closed. Available `flags`You can specify arguments as if using a CLI, e.g. Additionally, you can enable the following features when you create an ondemand by using The config will be parsed by Helm's strvals which is a compact format of YAML. Thus, if you have a YAML configuration, e.g. fieldA: you would pass it as 'fieldA.subFieldA=valueA,fieldB.subFieldB.subSubFieldB=valueB' |
|
/ondemand create --ske-base-branch=add-generic-metrics |
|
/cc @stackitcloud/ske-infrastructure |
|
stackitcloud/gardener-extension-provider-stackit#178 we need to merge it together |
|
No. This needs to be merged & released first. Then you can merge the provider-stackit with an CSI version bump |
3896109 to
01d9322
Compare
01d9322 to
ebbced5
Compare
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: b74b309030c1185a0136badcb3414b4e2df74ac9 |
|
/unhold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nschad The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick release-v1.33 |
|
@nschad: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@nschad: #1228 failed to apply on top of branch "release-v1.33": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@nschad: #1228 failed to apply on top of branch "release-v1.34": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@nschad: #1228 failed to apply on top of branch "release-v1.35": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@nschad: new pull request created: #1350 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
* add genetric metrics for external API * make fmt * add tests for the new http error metrics * remove loadbalancer prefix from metrics names * add tests for HTTPRequestDurationHistogram and HTTPRequestCount * add api label from client creation * make mod tidy * add metrics for csi * call metric server from csi/main.go * create prometheus metrics exporter * remove api name required check and update tests * remove error from func * make status_code * make add more labels in new metrics * make lint * fix test * optimize code
* add genetric metrics for external API * make fmt * add tests for the new http error metrics * remove loadbalancer prefix from metrics names * add tests for HTTPRequestDurationHistogram and HTTPRequestCount * add api label from client creation * make mod tidy * add metrics for csi * call metric server from csi/main.go * create prometheus metrics exporter * remove api name required check and update tests * remove error from func * make status_code * make add more labels in new metrics * make lint * fix test * optimize code
* add genetric metrics for external API * make fmt * add tests for the new http error metrics * remove loadbalancer prefix from metrics names * add tests for HTTPRequestDurationHistogram and HTTPRequestCount * add api label from client creation * make mod tidy * add metrics for csi * call metric server from csi/main.go * create prometheus metrics exporter * remove api name required check and update tests * remove error from func * make status_code * make add more labels in new metrics * make lint * fix test * optimize code
* add genetric metrics for external API * make fmt * add tests for the new http error metrics * remove loadbalancer prefix from metrics names * add tests for HTTPRequestDurationHistogram and HTTPRequestCount * add api label from client creation * make mod tidy * add metrics for csi * call metric server from csi/main.go * create prometheus metrics exporter * remove api name required check and update tests * remove error from func * make status_code * make add more labels in new metrics * make lint * fix test * optimize code Co-authored-by: Aniruddha Basak <aniruddha.basak@stackit.cloud>
How to categorize this PR?
/kind enhancement
What this PR does / why we need it:
This PR enables using generic metrics for all the external API (IaaS & Loadbalancer) and also track error code more than 400 unlike 500 previously.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Breaking changes: