Skip to content

Commit

Permalink
updated default ports in influxdb v2 docs, resolves #1392
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderson committed Sep 4, 2020
1 parent f6a75a6 commit e130607
Show file tree
Hide file tree
Showing 85 changed files with 114 additions and 114 deletions.
24 changes: 12 additions & 12 deletions content/influxdb/v2.0/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Currently, we do **not support** using an existing InfluxDB Cloud 2.0 account to

{{% cloud %}}
All InfluxDB 2.0 documentation applies to {{< cloud-name "short" >}} unless otherwise specified.
References to the InfluxDB user interface (UI) or localhost:9999 refer to your
References to the InfluxDB user interface (UI) or localhost:8086 refer to your
{{< cloud-name >}} UI.
{{% /cloud %}}

Expand Down Expand Up @@ -149,7 +149,7 @@ In a terminal, run the following command:
```sh
# Set up a configuration profile
influx config create -n default \
-u http://localhost:9999 \
-u http://localhost:8086 \
-o example-org \
-t mySuP3rS3cr3tT0keN \
-a
Expand Down Expand Up @@ -209,7 +209,7 @@ In a terminal, run the following command:
```sh
# Set up a configuration profile
influx config create -n default \
-u http://localhost:9999 \
-u http://localhost:8086 \
-o example-org \
-t mySuP3rS3cr3tT0keN \
-a
Expand Down Expand Up @@ -291,7 +291,7 @@ If you rename the binaries, all references to `influx` and `influxd` in this doc

#### Networking ports

By default, InfluxDB uses TCP port `9999` for client-server communication over
By default, InfluxDB uses TCP port `8086` for client-server communication over
the [InfluxDB HTTP API](/influxdb/v2.0/reference/api/).

### Start InfluxDB
Expand Down Expand Up @@ -374,7 +374,7 @@ If you rename the binaries, all references to `influx` and `influxd` in this doc

#### Networking ports

By default, InfluxDB uses TCP port `9999` for client-server communication over
By default, InfluxDB uses TCP port `8086` for client-server communication over
the [InfluxDB HTTP API](/influxdb/v2.0/reference/api/).

### Start InfluxDB
Expand Down Expand Up @@ -415,11 +415,11 @@ influxd --reporting-disabled
### Download and run InfluxDB v2.0 beta

Use `docker run` to download and run the InfluxDB v2.0 beta Docker image.
Expose port `9999`, which InfluxDB uses for client-server communication over
Expose port `8086`, which InfluxDB uses for client-server communication over
the [InfluxDB HTTP API](/influxdb/v2.0/reference/api/).

```sh
docker run --name influxdb -p 9999:9999 quay.io/influxdb/influxdb:2.0.0-beta
docker run --name influxdb -p 8086:8086 quay.io/influxdb/influxdb:2.0.0-beta
```
_To run InfluxDB in [detached mode](https://docs.docker.com/engine/reference/run/#detached-vs-foreground), include the `-d` flag in the `docker run` command._

Expand All @@ -434,7 +434,7 @@ To opt-out of sending telemetry data back to InfluxData, include the
`--reporting-disabled` flag when starting the InfluxDB container.

```bash
docker run -p 9999:9999 quay.io/influxdb/influxdb:2.0.0-beta --reporting-disabled
docker run -p 8086:8086 quay.io/influxdb/influxdb:2.0.0-beta --reporting-disabled
```
{{% /note %}}

Expand Down Expand Up @@ -495,10 +495,10 @@ The instructions below use Minikube, but the steps should be similar in any Kube

You should see an IP address after `Endpoints` in the command's output.
6. Forward port 9999 from inside the cluster to localhost:
6. Forward port 8086 from inside the cluster to localhost:
```sh
kubectl port-forward -n influxdb service/influxdb 9999:9999
kubectl port-forward -n influxdb service/influxdb 8086:8086
```
{{% /tab-content %}}
Expand All @@ -523,7 +523,7 @@ the `influx` command line interface (CLI).
{{% tab-content %}}
### Set up InfluxDB through the UI
1. With InfluxDB running, visit [localhost:9999](http://localhost:9999).
1. With InfluxDB running, visit [localhost:8086](http://localhost:8086).
2. Click **Get Started**
#### Set up your initial user
Expand All @@ -546,7 +546,7 @@ If you set up InfluxDB through the UI and want to use the [`influx` CLI](/influx
```sh
# Set up a configuration profile
influx config create -n default \
-u http://localhost:9999 \
-u http://localhost:8086 \
-o example-org \
-t mySuP3rS3cr3tT0keN \
-a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The AWS CloudWatch Monitoring template includes the following:
```sh
## k8s
[[outputs.influxdb_v2]]
urls = ["http://influxdb.monitoring:9999"]
urls = ["http://influxdb.monitoring:8086"]
organization = "InfluxData"
bucket = "kubernetes"
token = "secret-token"
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/organizations/view-orgs.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ After logging in to the InfluxDB UI, your organization ID appears in the URL.


<pre class="highlight">
http://localhost:9999/orgs/<span class="bp" style="font-weight:bold;margin:0 .15rem">03a2bbf46249a000</span>/...
http://localhost:8086/orgs/<span class="bp" style="font-weight:bold;margin:0 .15rem">03a2bbf46249a000</span>/...
</pre>


Expand Down
4 changes: 2 additions & 2 deletions content/influxdb/v2.0/query-data/execute-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Below is an example `curl` command that queries InfluxDB:

{{% code-tab-content %}}
```bash
curl http://localhost:9999/api/v2/query?org=my-org -XPOST -sS \
curl http://localhost:8086/api/v2/query?org=my-org -XPOST -sS \
-H 'Authorization: Token YOURAUTHTOKEN' \
-H 'Accept: application/csv' \
-H 'Content-type: application/vnd.flux' \
Expand All @@ -93,7 +93,7 @@ curl http://localhost:9999/api/v2/query?org=my-org -XPOST -sS \

{{% code-tab-content %}}
```bash
curl http://localhost:9999/api/v2/query?org=my-org -XPOST -sS \
curl http://localhost:8086/api/v2/query?org=my-org -XPOST -sS \
-H 'Authorization: Token YOURAUTHTOKEN' \
-H 'Accept: application/csv' \
-H 'Content-type: application/vnd.flux' \
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/query-data/flux/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ to store your database credentials as secrets.
{{% /tabs %}}
{{% tab-content %}}
```sh
curl -X PATCH http://localhost:9999/api/v2/orgs/<org-id>/secrets \
curl -X PATCH http://localhost:8086/api/v2/orgs/<org-id>/secrets \
-H 'Authorization: Token YOURAUTHTOKEN' \
-H 'Content-type: application/json' \
-d '{
Expand Down
4 changes: 2 additions & 2 deletions content/influxdb/v2.0/reference/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Include your authentication token as an `Authorization` header in each request.

```sh
curl --request POST \
--url http://localhost:9999/api/v2/write?org=my-org&bucket=example-bucket \
--url http://localhost:8086/api/v2/write?org=my-org&bucket=example-bucket \
--header 'Authorization: Token YOURAUTHTOKEN'
```

Expand All @@ -28,7 +28,7 @@ curl --request POST \
InfluxDB API documentation is built into the `influxd` service and represents
the API specific to the current version of InfluxDB.
To view the API documentation locally, [start InfluxDB](/influxdb/v2.0/get-started/#start-influxdb)
and visit the `/docs` endpoint in a browser ([localhost:9999/docs](http://localhost:9999/docs)).
and visit the `/docs` endpoint in a browser ([localhost:8086/docs](http://localhost:8086/docs)).

## InfluxDB client libraries
InfluxDB client libraries are language-specific packages that integrate with the InfluxDB v2 API.
Expand Down
4 changes: 2 additions & 2 deletions content/influxdb/v2.0/reference/api/client-libraries/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Use the Go library to write and query data from InfluxDB.
org := "example-org"
token := "example-token"
// Store the URL of your InfluxDB instance
url := "http://localhost:9999"
url := "http://localhost:8086"
```

3. Create the the InfluxDB Go client and pass in the `url` and `token` parameters.
Expand Down Expand Up @@ -103,7 +103,7 @@ Use the Go library to write data to InfluxDB.
org := "example-org"
token := "example-token"
// Store the URL of your InfluxDB instance
url := "http://localhost:9999"
url := "http://localhost:8086"
// Create new client with default option for server url authenticate by token
client := influxdb2.NewClient(url, token)
// User blocking write client for writes to desired bucket
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If just getting started, see [Get started with InfluxDB](/influxdb/v2.0/get-star
```

2. Ensure that InfluxDB is running.
If running InfluxDB locally, visit http://localhost:9999.
If running InfluxDB locally, visit http://localhost:8086.
(If using InfluxDB Cloud, visit the URL of your InfluxDB Cloud UI.
For example: https://us-west-2-1.aws.cloud2.influxdata.com.)

Expand All @@ -49,7 +49,7 @@ We are going to write some data in [line protocol](/influxdb/v2.0/reference/synt
org = "<my-org>"
token = "<my-token>"
# Store the URL of your InfluxDB instance
url="http://localhost:9999"
url="http://localhost:8086"
```

3. Instantiate the client. The `InfluxDBClient` object takes three named parameters: `url`, `org`, and `token`. Pass in the named parameters.
Expand Down Expand Up @@ -86,7 +86,7 @@ bucket = "<my-bucket>"
org = "<my-org>"
token = "<my-token>"
# Store the URL of your InfluxDB instance
url="http://localhost:9999"
url="http://localhost:8086"
client = influxdb_client.InfluxDBClient(
url=url,
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/reference/api/postman.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ Use the **Authorization** tab in Postman to include the credentials required whe
5. Ensure that the **Add to** option is set to **Header**.

To test the authentication, enter the `/health` endpoint of a local or Cloud instance of InfluxDB into the address bar
(for example, http://localhost:9999/api/v2/health or https://us-west-2-1.aws.cloud2.influxdata.com/api/v2/health)
(for example, http://localhost:8086/api/v2/health or https://us-west-2-1.aws.cloud2.influxdata.com/api/v2/health)
and then click **Send**.
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/reference/cli/influx/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ influx [command]
```sh
# Set up a configuration profile
influx config create -n default \
-u http://localhost:9999 \
-u http://localhost:8086 \
-o example-org \
-t mySuP3rS3cr3tT0keN \
-a
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/reference/cli/influx/apply/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ influx apply [flags]
| | `--filter` | Resources to skip when applying the template (filter by `kind` or `resource`) | string | |
| | `--force` | Ignore warnings about destructive changes | | |
| `-h` | `--help` | Help for the `apply` command | | |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| | `--json` | Output data as JSON | | `INFLUX_OUTPUT_JSON` |
| `-o` | `--org` | Organization name that owns the bucket | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID that owns the bucket | string | `INFLUX_ORG_ID` |
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/reference/cli/influx/auth/active.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ influx auth active [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `active` command | | |
| | `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| `-i` | `--id` | **(Required)** Authorization ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/reference/cli/influx/auth/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ influx auth create [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `create` command | | |
| | `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-o` | `--org` | **(Required)** Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/reference/cli/influx/auth/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ influx auth delete [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `delete` command | | |
| | `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| `-i` | `--id` | **(Required)** Authorization ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ influx auth inactive [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `inactive` command | | |
| | `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| `-i` | `--id` | **(Required)** Authorization ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |
Expand Down
2 changes: 1 addition & 1 deletion content/influxdb/v2.0/reference/cli/influx/auth/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ influx auth list [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `list` command | | |
| | `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| `-i` | `--id` | Authorization ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-o` | `--org` | Organization name | string | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ influx backup [flags]
| `-c` | `--active-config` | CLI configuration to use for command | string | |
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `backup` command | | |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| `-p` | `--path` | Directory path to write backup files to | string | `INFLUX_PATH` |
| | `--skip-verify` | Skip TLS certificate verification | | |
| `-t` | `--token` | Authentication token | string | `INFLUX_TOKEN` |
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ influx bucket [command]
| `-c` | `--active-config` | CLI configuration to use for command | string | |
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `bucket` command | | |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| | `--skip-verify` | Skip TLS certificate verification | | |
| `-t` | `--token` | Authentication token | string | `INFLUX_TOKEN` |
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ influx bucket create [flags]
| `-d` | `--description` | Bucket description | string | |
| `-h` | `--help` | Help for the `create` command | | |
| | `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Bucket name | string | `INFLUX_BUCKET_NAME` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
Expand Down
Loading

0 comments on commit e130607

Please sign in to comment.