# COG version of InfluxDB®

InfluxDB® is a time series database designed to handle high write and query loads. It is an integral component of the TICK stack. InfluxDB® is meant to be used as a backing store for any use case involving large amounts of timestamped data, including DevOps monitoring, application metrics, IoT sensor data, and real-time analytics.

## Support

For bug reports, feature requests, or general questions, please [contact us](/content/contact/index.html).

## Directions

1. Launch AMI from the [Amazon Marketplace](https://aws.amazon.com/marketplace/pp/B07R5WHL4Y/?ref=_pntr_cogweb_influxdb)
2. SSH into your instance as the **ec2-user** user.
3. InfluxDB® is already running and listening on port 8086
4. Edit " _/etc/influxdb/influxdb.conf_" if you want to change options.

- Restart server with "`/etc/init.d/influxdb restart`"

### Getting Started with Influx

See: [InfluxDB® documentation](https://docs.influxdata.com/influxdb/)

## Initial Setup

```
influx setup
```

You should see output like this:

```
> Welcome to InfluxDB 2.0!
? Please type your primary username josh
? Please type your password ********
? Please type your password again ********
? Please type your primary organization name COG
? Please type your primary bucket name stats
? Please type your retention period in hours, or 0 for infinite 0
? Setup with these parameters?
  Username:          josh
  Organization:      COG
  Bucket:            stats
  Retention Period:  infinite
```

Executing `influx v1 shell` will start the CLI and automatically connect to the local InfluxDB® instance

The output should look like this:

```
$ influx v1 shell
InfluxQL Shell 2.4.0
Connected to InfluxDB OSS v2.4.0
```

to display all existing databases:

```
> SHOW DATABASES
```

```
Interactive Table View (press q to exit mode, shift+up/down to navigate tables):
Name: databases
┏━━━━━━━┳━━━━━━━━━━━━━┓
┃ index ┃    name     ┃
┣━━━━━━━╋━━━━━━━━━━━━━┫
┃      1┃_monitoring  ┃
┃      2┃_tasks       ┃
┃      3┃stats        ┃
┣━━━━━━━┻━━━━━━━━━━━━━┫
┃   2 Columns, 3 Rows,┃
┃             Page 1/1┃
┃ Table 1/1, Statement┃
┃                  1/1┃
┗━━━━━━━━━━━━━━━━━━━━━┛
```

To learn more about the InfluxDB® write protocol,
check out the guide on [Writing Data](https://docs.influxdata.com/influxdb/v2.4/write-data/).

To further explore the query language,
check out the guide on [Querying Data](https://docs.influxdata.com/influxdb/v2.4/query-data/).

For more information on InfluxDB® concepts, check out the [Key Concepts](https://docs.influxdata.com/influxdb/v2.4/reference/key-concepts/) page.

_InfluxDB® is a trademark registered by InfluxData, which is not affiliated with, and does not endorse, this site._
