-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store Chaos-Exporter metrics into AWS CloudWatch (#72)
* Introduce AWS CloudExporter authored-by: nrusinko <Nikolay Rusinko>
- Loading branch information
Showing
6 changed files
with
152 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
## The ENV variables specified in this manifest MUST be provided with appropriate values to obtain metrics on AWS CloudWatch | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: chaos-monitor | ||
name: chaos-monitor | ||
namespace: litmus | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: chaos-monitor | ||
template: | ||
metadata: | ||
labels: | ||
app: chaos-monitor | ||
spec: | ||
containers: | ||
- image: litmuschaos/chaos-exporter:ci | ||
imagePullPolicy: Always | ||
name: chaos-exporter | ||
env: | ||
# Namespace in CloudWatch | ||
- name: AWS_CLOUDWATCH_METRIC_NAMESPACE | ||
value: | ||
# Name of a Kubernetes cluster to collect metrics from | ||
- name: CLUSTER_NAME | ||
value: | ||
- name: APP_NAME | ||
value: chaos-monitor | ||
# Valid access key for you AWS account | ||
- name: AWS_ACCESS_KEY_ID | ||
value: | ||
# Valid secret key for you AWS account | ||
- name: AWS_SECRET_ACCESS_KEY | ||
value: | ||
# Region where you want to store CloudWatch metrics | ||
- name: AWS_REGION | ||
value: | ||
serviceAccount: litmus | ||
serviceAccountName: litmus | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: chaos-monitor | ||
name: chaos-monitor | ||
namespace: litmus | ||
spec: | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: chaos-monitor | ||
type: ClusterIP |
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