-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make examples resource footprint smaller, fix bugs (#1171)
- Loading branch information
Showing
16 changed files
with
125 additions
and
62 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
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
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
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
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
61 changes: 61 additions & 0 deletions
61
examples/support/observability/config/prometheus-mock/mockserver-config.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,61 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: mockserver-config | ||
data: | ||
initializerJson.json: |- | ||
[ | ||
{ | ||
"httpRequest": { | ||
"path": "/api/v1/query", | ||
"method": "POST" | ||
}, | ||
"httpResponse": { | ||
"body": { | ||
"status": "success", | ||
"data": { | ||
"resultType": "vector", | ||
"result": [ | ||
{ | ||
"metric": { | ||
"__name__": "metric-name", | ||
"job": "", | ||
"instance": "" | ||
}, | ||
"value": [1669714193.275, "4"] | ||
} | ||
] | ||
} | ||
}, | ||
"statusCode": 200 | ||
} | ||
} | ||
] | ||
mockserver.properties: |- | ||
############################### | ||
# MockServer & Proxy Settings # | ||
############################### | ||
# Socket & Port Settings | ||
# socket timeout in milliseconds (default 120000) | ||
mockserver.maxSocketTimeout=120000 | ||
# Certificate Generation | ||
# dynamically generated CA key pair (if they don't already exist in | ||
specified directory) | ||
mockserver.dynamicallyCreateCertificateAuthorityCertificate=true | ||
# save dynamically generated CA key pair in working directory | ||
mockserver.directoryToSaveDynamicSSLCertificate=. | ||
# certificate domain name (default "localhost") | ||
mockserver.sslCertificateDomainName=localhost | ||
# comma separated list of ip addresses for Subject Alternative Name domain | ||
names (default empty list) | ||
mockserver.sslSubjectAlternativeNameDomains=www.example.com,www.another.com | ||
# comma separated list of ip addresses for Subject Alternative Name ips | ||
(default empty list) | ||
mockserver.sslSubjectAlternativeNameIps=127.0.0.1 | ||
# CORS | ||
# enable CORS for MockServer REST API | ||
mockserver.enableCORSForAPI=true | ||
# enable CORS for all responses | ||
mockserver.enableCORSForAllResponses=true | ||
# Json Initialization | ||
mockserver.initializationJsonPath=/config/initializerJson.json |
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
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
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