-
Notifications
You must be signed in to change notification settings - Fork 1.3k
tests: add exnternal-prometheus integration test #5720
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4a82de8
tests: add exnternal-prometheus integration test
Pothulapati aee969e
Merge branch 'main' into tarun/external-prom-tests
Pothulapati 360a3a6
update TestCheckViz about external prometheus test
Pothulapati 25799c9
inject external prometheus and also update viz tests
Pothulapati 4414f1e
restore order of golden files in endpoints test
Pothulapati df410e5
rename test to external-prometheus-deep
Pothulapati 9dd842c
update endpoints test to also include external prometheus
Pothulapati acc78db
parameterize stat tests for external prometheus scenario
Pothulapati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
test/integration/edges/testdata/external_prometheus/direct_edges.golden
This file contains hidden or 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,29 @@ | ||
| \[ | ||
| \{ | ||
| "src": "prometheus", | ||
| "src_namespace": "default", | ||
| "dst": "slow-cooker", | ||
| "dst_namespace": "{{.Ns}}", | ||
| "client_id": "prometheus.default", | ||
| "server_id": "default.{{.Ns}}", | ||
| "no_tls_reason": "" | ||
| \}, | ||
| \{ | ||
| "src": "prometheus", | ||
| "src_namespace": "default", | ||
| "dst": "terminus", | ||
| "dst_namespace": "{{.Ns}}", | ||
| "client_id": "prometheus.default", | ||
| "server_id": "default.{{.Ns}}", | ||
| "no_tls_reason": "" | ||
| \}, | ||
| \{ | ||
| "src": "slow-cooker", | ||
| "src_namespace": "{{.Ns}}", | ||
| "dst": "terminus", | ||
| "dst_namespace": "{{.Ns}}", | ||
| "client_id": "default.{{.Ns}}", | ||
| "server_id": "default.{{.Ns}}", | ||
| "no_tls_reason": "" | ||
| \} | ||
| \] |
This file contains hidden or 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
65 changes: 65 additions & 0 deletions
65
test/integration/endpoints/testdata/external_prometheus/linkerd_endpoints.golden
This file contains hidden or 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,65 @@ | ||
| \[ | ||
| \{ | ||
| "namespace": "default", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 9090, | ||
| "pod": "prometheus\-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "prometheus.default" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.Ns}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 8085, | ||
| "pod": "linkerd\-controller\-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-controller\-api\.{{.Ns}}" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.Ns}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 8086, | ||
| "pod": "linkerd\-destination\-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-dst\.{{.Ns}}" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.Ns}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 8080, | ||
| "pod": "linkerd\-identity\-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-identity\.{{.Ns}}" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.Ns}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 8443, | ||
| "pod": "linkerd\-proxy\-injector-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-proxy\-injector\.{{.Ns}}" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.Ns}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 8443, | ||
| "pod": "linkerd\-sp\-validator-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-sp\-validator\.{{.Ns}}" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.VizNs}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 3000, | ||
| "pod": "linkerd\-grafana\-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-grafana\.{{.VizNs}}" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.VizNs}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 8088, | ||
| "pod": "linkerd\-tap\-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-tap\.{{.VizNs}}" | ||
| \}, | ||
| \{ | ||
| "namespace": "{{.VizNs}}", | ||
| "ip": "\d+\.\d+\.\d+\.\d+", | ||
| "port": 8084, | ||
| "pod": "linkerd\-web\-[a-f0-9]+\-[a-z0-9]+", | ||
| "service": "linkerd\-web\.{{.VizNs}}" | ||
| \} | ||
| \] |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
May be nice to make this a builder, or the fields public at some point. This function has a wild number of arguments!