Skip to content

Commit

Permalink
[appmesh-prometheus] Add support for remote-write (aws#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
egkelly committed Aug 1, 2023
1 parent 45a3345 commit f5c5e1d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stable/appmesh-prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: appmesh-prometheus
description: App Mesh Prometheus Helm chart for Kubernetes
version: 1.0.2
version: 1.0.3
appVersion: 2.13.1
home: https://github.com/aws/eks-charts
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
Expand Down
16 changes: 10 additions & 6 deletions stable/appmesh-prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,16 @@ Parameter | Description | Default
`nodeSelector` | node labels for pod assignment | `{}`
`tolerations` | list of node taints to tolerate | `[]`
`rbac.create` | if `true`, create and use RBAC resources | `true`
`rbac.pspEnabled` | If `true`, create and use a restricted pod security policy | `false`
`serviceAccount.create` | If `true`, create a new service account | `true`
`serviceAccount.name` | Service account to be used | None
`retention` | When to remove old data | `6h`
`scrapeInterval` | Interval between consecutive scrapes | `5s`
`persistentVolumeClaim.claimName` | Specify an existing volume claim to be used for Prometheus data | None
`rbac.pspEnabled` | if `true`, create and use a restricted pod security policy | `false`
`serviceAccount.create` | if `true`, create a new service account | `true`
`serviceAccount.name` | service account to be used | None
`retention` | when to remove old data | `6h`
`scrapeInterval` | interval between consecutive scrapes | `5s`
`persistentVolumeClaim.claimName` | specify an existing volume claim to be used for Prometheus data | None
`remoteWrite.enabled` | if `true`, write prometheus metrics to an external location | `false`
`remoteWrite.url` | the url of the endpoint to send samples to | None
`remoteWrite.bearer_token` | bearer token | None


## Troubleshooting

Expand Down
6 changes: 6 additions & 0 deletions stable/appmesh-prometheus/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,9 @@ data:
source_labels:
- __meta_kubernetes_pod_name
target_label: kubernetes_pod_name
{{- if .Values.remote_write.enabled }}
remote_write:
- url: "{{ .Values.remote_write.endpoint }}"
bearer_token: "{{ .Values.remote_write.bearer_token }}"
{{- end }}
5 changes: 5 additions & 0 deletions stable/appmesh-prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ rbac:
persistentVolumeClaim:
# persistentVolumeClaim.claimName: Specify an existing volume claim to be used for Prometheus data
claimName: ""

remote_write:
enabled: false
endpoint: ""
bearer_token: ""

0 comments on commit f5c5e1d

Please sign in to comment.