New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call Prometheus, Loki and Jaeger via Grafana API #13973
Conversation
/hold |
✅ 🥰 Documentation preview ready! 🥰
To edit notification comments on pull requests, go to your Netlify site settings. |
/test pre-main-kyma-integration-k3d-central-app-connectivity |
/test pre-main-kyma-gardener-gcp-eventing-upgrade |
/retest |
/retest |
/retest |
/test pre-main-kyma-integration-k3d-central-app-connectivity |
/retest |
console.log('Checking redirect for kyma docs'); | ||
return await retryUrl(url, redirectURL, ignoreSSL, 403); | ||
async function setGrafanaProxy() { | ||
if (getEnvOrDefault('KYMA_MAJOR_VERSION', '2') === '2') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we still need it? I thought all Kyma 1.* remnants are gone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep it for now as it is still used in other places in the code and remove them all in one follow-up PR.
await updateProxyDeployment('--reverse-proxy=true', '--trusted-ip=0.0.0.0/0'); | ||
info('Checking grafana redirect to grafana URL'); | ||
const res = await checkGrafanaRedirect('https://grafana.', 200); | ||
assert.isTrue(res, 'Grafana redirect to grafana landing page does not work!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should assert inside helper functions? Maybe throw an exception?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also assert in other helper functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still think it hinders test glanceability, but let's keep it for now
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: skhalash, VladislavPaskar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
@dennis-ge: The following tests failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
/retest-required |
* add callServiceViaProxy, remove pf references, fix unexpected type coercion * add async await * add log statement * add return * call jaeger and loki via grafana * switch to new info and error functions * add await * first execute grafana tests * don't reset proxy * comment out reset proxy * add async await * improve logging * get dashboard id before querying grafana * remove dedicated httpsAgent * fix jaeger datasource id * remove opts args * outsource logic into proxyGrafanaDatasource * call prometheus via grafana * lint * cleanup * fix upgrade test * update eventing tests * refactor grafana tests * remove port forward from telemetry test * add async await * telemetry test before and after * update telemetry test * use mocha it * add setGrafanaProxy method * remove unused var * update mocha tests * adjust ordering of tests * remove resetting proxy * small refactoring of grafana.js * fix lint * change it to after * change to mocha describe * uncomment code * small refactoring * revert unintended changes * fix skr * apply suggestions
Description
Changes proposed in this pull request:
proxyGrafanaDashboard
).kubectlportForward
), and execute the integration tests more from a user perspective.authorizationpolicies
andpeerauthorization
resources restricted the access to these services.info
,error
) in the observability teststracing
directoryPipelines:
Related issue(s)
Fixes #13375