Skip to content

Commit

Permalink
feat(Grafana): add Grafana support
Browse files Browse the repository at this point in the history
  • Loading branch information
rixrix committed Dec 10, 2016
1 parent 51004cf commit cad904d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Add support for `DNSimple`
* Add support for `Dyn`
* Add support for `Fastly`
* Add support for `Grafana`

# 0.10.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ This extension for Visual Studio Code adds snippets for Terraform.
* DNSimple
* Dyn
* Fastly
* Grafana
* AWS
* Resources w/ examples
* All [Data Sources](https://www.terraform.io/docs/providers/aws/d/acm_certificate.html),
Expand Down Expand Up @@ -101,7 +102,6 @@ A massive list of things to add
### Providers
* Grafana
* InfluxDB
* Librato
* Logentries
Expand Down
36 changes: 36 additions & 0 deletions snippets/terraform.json
Original file line number Diff line number Diff line change
Expand Up @@ -4805,4 +4805,40 @@
"}"
]
},
"grafana": {
"prefix": "tf-grafana",
"description": "define a grafana provider.",
"body": [
"provider \"grafana\" {",
" url = \"http://grafana.example.com/\"",
" auth = \"1234abcd\"",
"}"
]
},
"grafana_dashboard": {
"prefix": "tf-grafana_dashboard",
"description": "define grafana_dashboard resource.",
"body": [
"resource \"grafana_dashboard\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" config_json = \"\\${file(\"grafana-dashboard.json\")}\"",
"}"
]
},
"grafana_data_source": {
"prefix": "tf-grafana_data_source",
"description": "define grafana_data_source resource.",
"body": [
"resource \"grafana_data_source\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" type = \"influxdb\"",
" url = \"http://influxdb.example.net:8086/\"",
" username = \"myapp\"",
" password = \"foobarbaz\"",
" database_name = \"\\${influxdb_database.metrics.name}\"",
"}"
]
},
}

0 comments on commit cad904d

Please sign in to comment.