An open API service indexing awesome lists of open source software.

https://github.com/sematext/terraform-examples


https://github.com/sematext/terraform-examples

terraform

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          


Sematext Home


Sematext Cloud - Terraform Examples



Getting started with Terraform and the Sematext Cloud Terraform Provider











Examples of using Terraform scripting to automate Sematext Cloud monitoring, logging and metric integration alongside your solution.





Terraform Resources
|
Requirements
|
Authentication
|
Getting Started
|
Examples






Sematext is now a Terraform Verified Partner! You can access the Sematext Cloud Provider in the
Terraform Registry



#### Sematext Monitoring App Resources supported by this Provider:

[![Apache Solr](./assets/solr.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_solr)

[![Solr Cloud](./assets/solrcloud.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_solrcloud)

[![Elasticsearch](./assets/elasticsearch.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_elasticsearch)

[![Node.js](./assets/nodejs.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_nodejs)

[![Apache Spark](./assets/spark.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_spark)

[![Apache Kafka](./assets/kafka.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_kafka)

[![Docker](./assets/docker.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_docker)

[![Apache Cassandra](./assets/cassandra.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_cassandra)

[![Apache HBase](./assets/hbase.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_hbase)

[![Apache Hadoop](./assets/hadoop.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_hadoopmrv1)

[![MongoDB](./assets/mongodb.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_mongodb)

[![Apache Storm](./assets/storm.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_storm)

[![AWS EC2](./assets/ec2.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_awsec2)

[![AWS EBS](./assets/ebs.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_awsebs)

[![AWS ELB](./assets/elb.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_awselb)

[![Apache Tomcat](./assets/tomcat.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_tomcat)

[![Apache HTTP Server](./assets/apache.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_apache)

[![Nginx & Nginx Plus](./assets/nginx.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_nginxplus)

[![Redis](./assets/redis.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_redis)

[![MySQL](./assets/mysql.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_mysql)

[![Apache Zookeeper](./assets/zookeeper.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_zookeeper)

[![HAProxy](./assets/haproxy.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_haproxy)

[![Java](./assets/java.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_jvm)

[![Akka](./assets/akka.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_akka)

[![PostgreSQL](./assets/postgresql.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_postgresql)

[![Mobile Logs](./assets/mobile-logs.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_mobilelogs)

[![RabbitMQ](./assets/rabbitmq.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_rabbitmq)

[![Clickhouse](./assets/clickhouse.png)](https://registry.terraform.io/providers/sematext/sematext/latest/docs/resources/sematext_monitor_clickhouse)



#### Requirements:

* [Terraform v0.13+](https://www.terraform.io/downloads.html)
* [Sematext Cloud Account](https://apps.sematext.com/ui/account)
* [Sematext Cloud API Access Token](https://apps.sematext.com/ui/account/api)
* [Sematext Cloud Plan ID](https://github.com/sematext/terraform-provider-sematext/blob/master/docs/guides/plans.md)


#### Authentication:

These Terraform examples talk to Sematext Cloud and require a Sematext Cloud Access token to function.

You can find this by logging into your [Sematext Cloud Account](https://apps.sematext.com/ui/account/api)


#### Getting Started:

In your environment you will have the following environment vars:

```sh
SEMATEXT_API_KEY=""
SEMATEXT_REGION=""
```

Additionally, if you will be deploying a Sematext Cloud monitoring app that will talk to AWS you will also need:

```sh
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY= ""
AWS_REGION = ""
```

In the simplest case a file will contain the following Terraform hcl snippet:

```hcl
terraform {
required_providers {
sematext = {
source = "sematext/sematext"
version = "0.1.2"
}
}
}

provider "sematext" {
# provider configuration
}

resource "sematext_monitor_mongodb" "monitor_mongodb" {
name = "MongoDB Monitor"
billing_plan_id = 125
}
```

```bash
$ terraform init
$ terraform plan
$ terraform apply
```

*Note this particular example is a simple demo as a starting point, refer to more realistic examples listed in the [examples directory](./examples).*


#### Further Information:

* Sematext Manual Integrations Guide :https://sematext.com/docs/guide/integrations-guide/
* Terraform Website: https://www.terraform.io
* Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)
* [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.svg)](https://gitter.im/hashicorp-terraform/Lobby)