3c68684dd2
* Use relative aliases for all non-current Grafana aliases Prevents non-latest documentation "stealing" the page away from latest and through permanent redirects for latest pages that no longer exist. The redirected pages are indexed by search engines but our robots.txt forbids them crawling the non-latest page. Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Remove all current page aliases find docs/sources -type f -name '*.md' -exec sed -z -i 's#\n *- /docs/grafana/next/[^\n]*\n#\n#' {} \; find docs/sources -type f -name '*.md' -exec sed -z -i 's#\n *- /docs/grafana/latest/[^\n]*\n#\n#' {} \; find docs/sources -type f -name '*.md' -exec sed -Ez -i 's#\n((aliases:\n *-)|aliases:\n)#\n\2#' {} \; Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
70 lines
1.5 KiB
Markdown
70 lines
1.5 KiB
Markdown
---
|
|
aliases:
|
|
- ../cloudwatch/
|
|
description: Guide for provisioning CloudWatch
|
|
title: Provision CloudWatch
|
|
weight: 400
|
|
---
|
|
|
|
# Provision CloudWatch data source
|
|
|
|
You can configure the CloudWatch data source by customizing configuration files in Grafana's provisioning system. To know more about provisioning and learn about available configuration options, refer to the [Provisioning Grafana]({{< relref "../../administration/provisioning/#datasources" >}}) topic.
|
|
|
|
Here are some provisioning examples for this data source.
|
|
|
|
## Using AWS SDK (default)
|
|
|
|
```yaml
|
|
apiVersion: 1
|
|
datasources:
|
|
- name: CloudWatch
|
|
type: cloudwatch
|
|
jsonData:
|
|
authType: default
|
|
defaultRegion: eu-west-2
|
|
```
|
|
|
|
## Using credentials' profile name (non-default)
|
|
|
|
```yaml
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: CloudWatch
|
|
type: cloudwatch
|
|
jsonData:
|
|
authType: credentials
|
|
defaultRegion: eu-west-2
|
|
customMetricsNamespaces: 'CWAgent,CustomNameSpace'
|
|
profile: secondary
|
|
```
|
|
|
|
## Using accessKey and secretKey
|
|
|
|
```yaml
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: CloudWatch
|
|
type: cloudwatch
|
|
jsonData:
|
|
authType: keys
|
|
defaultRegion: eu-west-2
|
|
secureJsonData:
|
|
accessKey: '<your access key>'
|
|
secretKey: '<your secret key>'
|
|
```
|
|
|
|
## Using AWS SDK Default and ARN of IAM Role to Assume
|
|
|
|
```yaml
|
|
apiVersion: 1
|
|
datasources:
|
|
- name: CloudWatch
|
|
type: cloudwatch
|
|
jsonData:
|
|
authType: default
|
|
assumeRoleArn: arn:aws:iam::123456789012:root
|
|
defaultRegion: eu-west-2
|
|
```
|