mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 15:59:02 +08:00

* add support for code editor and builder * refactor cloudwatch migration * Add tooltip to editor field (#56) * add tooltip * add old tooltips * Bug bash feedback fixes (#58) * make ASC the default option * update sql preview whenever sql changes * don't allow queries without aggregation * set default value for aggregation * use new input field * cleanup * pr feedback * prevent unnecessary rerenders * use frame error instead of main error * remove not used snapshot * Use dimension filter in schema picker (#63) * use dimension key filter in group by and schema labels * add dimension filter also to code editor * add tests * fix build error * fix strict error * remove debug code * fix annotation editor (#64) * fix annotation editor * fix broken test * revert annotation backend change * PR feedback (#67) * pr feedback * removed dimension filter from group by * add spacing between common fields and rest * do not generate deep link for metric queries (#70) * update docs (#69) Co-authored-by: Erik Sundell <erik.sundell87@gmail.com> * fix lint problem caused by merge conflict Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
69 lines
1.5 KiB
Markdown
69 lines
1.5 KiB
Markdown
+++
|
|
title = "Provision CloudWatch"
|
|
description = "Guide for provisioning CloudWatch"
|
|
weight = 400
|
|
aliases = ["/docs/grafana/latest/datasources/cloudwatch"]
|
|
+++
|
|
|
|
# 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
|
|
```
|