updated default ports in influxdb v2 docs, resolves #1392

pull/1399/head
Scott Anderson 2020-09-04 11:45:18 -06:00
parent f6a75a6668
commit e130607357
85 changed files with 114 additions and 114 deletions

View File

@ -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 %}}
@ -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
@ -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
@ -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
@ -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
@ -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._
@ -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 %}}
@ -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 %}}
@ -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
@ -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

View File

@ -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"

View File

@ -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>

View File

@ -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' \
@ -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' \

View File

@ -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 '{

View File

@ -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'
```
@ -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.

View File

@ -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.
@ -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

View File

@ -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.)
@ -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.
@ -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,

View File

@ -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**.

View File

@ -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

View File

@ -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` |

View File

@ -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 | | |

View File

@ -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` |

View File

@ -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 | | |

View File

@ -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 | | |

View File

@ -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 | |

View File

@ -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` |

View File

@ -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` |

View File

@ -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` |

View File

@ -26,7 +26,7 @@ influx bucket 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` | Bucket ID _(required if no `--name`)_ | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Bucket name _(requires `--org` or `org-id`)_ | string | |

View File

@ -28,7 +28,7 @@ influx bucket 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` | Bucket ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Bucket name | string | `INFLUX_BUCKET_NAME` |

View File

@ -25,7 +25,7 @@ influx bucket update [flags]
| `-d` | `--description` | Bucket description | string | |
| `-h` | `--help` | Help for the `update` 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)** Bucket ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | New bucket name | string | `INFLUX_BUCKET_NAME` |

View File

@ -33,14 +33,14 @@ influx config create [flags]
# Create a connection configuration and set it active
influx config create --active \
-n config-name \
-u http://localhost:9999 \
-u http://localhost:8086 \
-t mySuP3rS3cr3tT0keN \
-o example-org
# Create a connection configuration without setting it active
influx config create \
-n config-name \
-u http://localhost:9999 \
-u http://localhost:8086 \
-t mySuP3rS3cr3tT0keN \
-o example-org
```

View File

@ -24,7 +24,7 @@ influx dashboards [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `dashboards` command | | |
| | `--hide-headers` | Hide table headers | | `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` | Dashboard ID to retrieve | string | |
| | `--json` | Output data as JSON | | `INFLUX_OUTPUT_JSON` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |

View File

@ -31,7 +31,7 @@ timestamps between the specified `--start` and `--stop` times in the specified b
| | `--bucket-id` | Bucket ID | string | `INFLUX_BUCKET_ID` |
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `delete` 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` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-p` | `--predicate` | InfluxQL-like predicate string (see [Delete predicate](/influxdb/v2.0/reference/syntax/delete-predicate)) | string | |

View File

@ -39,7 +39,7 @@ influx export [command]
| | `--endpoints` | Comma-separated list of notification endpoint IDs | string | |
| `-f` | `--file` | Template output file. Defaults to stdout. Use `.yml` or `.json` file extensions. | string | |
| `-h` | `--help` | Help for the `export` 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` |
| | `--labels` | Comma-separated list of label IDs | string | |
| | `--resource-type` | Resource type associated with all IDs via stdin | string | |
| | `--rules` | Comma-separated list of notification rule IDs | string | |

View File

@ -30,7 +30,7 @@ influx export all [flags]
| `-f` | `--file` | Template output file. Defaults to stdout. Use `.yml` or `.json` file extensions. | string | |
| | `--filter` | Specify resources to export by labelName or resourceKind (format: `--filter=labelName=example`) | list of strings | |
| `-h` | `--help` | Help for the `export all` 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` |
| `-o` | `--org` | Organization name that owns the resources | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID that owns the resources | string | `INFLUX_ORG_ID` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -25,7 +25,7 @@ influx export stack <stack_id> [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-f` | `--file` | Template output file. Defaults to stdout. Use `.yml` or `.json` file extensions. | string | |
| `-h` | `--help` | Help for the `export stack` 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` |
| `-o` | `--org` | Organization name that owns the resources | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID that owns the resources | string | `INFLUX_ORG_ID` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -23,7 +23,7 @@ influx org create [flags]
| `-d` | `--description` | Description of the organization | | |
| `-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` | Organization name | string | |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -22,7 +22,7 @@ influx org 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)** Organization ID | string | `INFLUX_ORG_ID` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -27,7 +27,7 @@ influx org 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` | Organization ID | string | `INFLUX_ORG` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Organization name | string | `INFLUX_ORG_ID` |

View File

@ -19,7 +19,7 @@ influx org members add [flags]
| Flag | | Description | Input type | {{< cli/mapped >}} |
|:---- |:--- |:----------- |:----------: |:------------------ |
| `-h` | `--help` | Help for the `add` 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` |
| `-i` | `--id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-m` | `--member` | Member ID | string | |
| `-n` | `--name` | Organization name | string | `INFLUX_ORG` |

View File

@ -20,7 +20,7 @@ influx org members list [flags]
|:---- |:--- |:----------- |:----------: |:------------------ |
| `-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` | Organization ID | string | `INFLUX_ORG_ID` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Organization name | string | `INFLUX_ORG` |

View File

@ -19,7 +19,7 @@ influx org members remove [flags]
| Flag | | Description | Input type | {{< cli/mapped >}} |
|:---- |:--- |:----------- |:----------: |:------------------ |
| `-h` | `--help` | Help for the `remove` 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` |
| `-i` | `--id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-o` | `--member` | Member ID | string | |
| `-n` | `--name` | Organization name | string | `INFLUX_ORG` |

View File

@ -23,7 +23,7 @@ influx org update [flags]
| `-d` | `--description` | Description for the organization | string | `INFLUX_ORG_DESCRIPTION` |
| `-h` | `--help` | Help for the `update` 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)** Organization ID | string | `INFLUX_ORG_ID` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Organization name | string | `INFLUX_ORG` |

View File

@ -24,5 +24,5 @@ influx ping [flags]
| Flag | | Description | Input type | {{< cli/mapped >}} |
|:---- |:--- |:----------- |:---------- |:----------------- |
| `-h` | `--help` | Help for the `ping` command | | |
| | `--host` | HTTP address of InfluxDB (default `http://localhost9999`) | string | `INFLUX_HOST` |
| | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | string | `INFLUX_HOST` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -26,7 +26,7 @@ influx query [query literal] [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-f` | `--file` | Path to Flux script file | string | |
| `-h` | `--help` | Help for the `query` 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` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-r` | `--raw` | Output raw query results (annotated CSV) | | |

View File

@ -33,7 +33,7 @@ To use the Flux REPL, you must first authenticate with a [token](/influxdb/v2.0/
| `-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 `repl` 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` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -23,7 +23,7 @@ influx secret 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` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-k` | `--key` | **(Required)** Secret key | string | |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |

View File

@ -26,7 +26,7 @@ influx secret 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` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |

View File

@ -32,7 +32,7 @@ influx secret update [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `update` 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` |
| `-k` | `--key` | **(Required)** Secret key | string | |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |

View File

@ -27,7 +27,7 @@ influx setup [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-f` | `--force` | Skip confirmation prompt | | |
| `-h` | `--help` | Help for the `setup` 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` |
| `-o` | `--org` | Primary organization name | string | |
| `-p` | `--password` | Password for primary user | string | |
| `-r` | `--retention` | Duration bucket will retain data (0 is infinite, default is 0) | duration | |

View File

@ -35,7 +35,7 @@ influx stacks [command]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `stacks` 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` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |

View File

@ -25,7 +25,7 @@ influx stacks init [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `init` 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` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |

View File

@ -28,7 +28,7 @@ influx stacks remove [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `remove` 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` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |

View File

@ -25,7 +25,7 @@ influx stacks update [flags]
| `-f` | `--export-file` | Destination for exported template | string | |
| `-h` | `--help` | Help for the `update` 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` | `--stack-id` | The stack ID to update | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -23,7 +23,7 @@ influx task create [query literal] [flags]
| `-f` | `--file` | Path to Flux script file | 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` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |

View File

@ -22,7 +22,7 @@ influx task 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)** Task ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -27,7 +27,7 @@ influx task 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` | Task ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--limit` | Number of tasks to find (default `100`) | integer | |

View File

@ -27,7 +27,7 @@ influx task log 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` |
| | `--run-id` | Run ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -29,7 +29,7 @@ influx task run 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` |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--limit` | Limit the number of results | integer | |
| | `--run-id` | Run ID | string | |

View File

@ -21,7 +21,7 @@ influx task run retry [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 `retry` 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` |
| `-r` | `--run-id` | **(Required)** Run ID | string | |
| | `--skip-verify` | Skip TLS certificate verification | | |
| `-i` | `--task-id` | **(Required)** Task ID | string | |

View File

@ -23,7 +23,7 @@ influx task update [flags]
| `-f` | `--file` | Path to Flux script file | string | |
| `-h` | `--help` | Help for the `update` 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)** Task ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -22,7 +22,7 @@ influx user 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` |
| `-n` | `--name` | **(Required)** Username | string | `INFLUX_NAME` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |

View File

@ -22,7 +22,7 @@ influx user 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)** User ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -27,7 +27,7 @@ influx user 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` | User ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Username | string | |

View File

@ -23,7 +23,7 @@ influx user password [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 `password` 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` |
| `-i` | `--id` | User ID | string | |
| `-n` | `--name` | Username | string | |
| | `--skip-verify` | Skip TLS certificate verification | | |

View File

@ -23,7 +23,7 @@ influx user update [flags]
| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` |
| `-h` | `--help` | Help for the `update` 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)** User ID | string | |
| | `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `-n` | `--name` | Username | string | |

View File

@ -42,7 +42,7 @@ influx write [command]
| | `--format` | Input format (`lp` or `csv`, default `lp`) | string | |
| | `--header` | Prepend header line to CSV input data | string | |
| `-h` | `--help` | Help for the `dryrun` 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` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-p` | `--precision` | Precision of the timestamps (default `ns`) | string | `INFLUX_PRECISION` |

View File

@ -36,7 +36,7 @@ influx write dryrun [flags]
| | `--format` | Input format (`lp` or `csv`, default `lp`) | string | |
| | `--header` | Prepend header line to CSV input data | string | |
| `-h` | `--help` | Help for the `dryrun` 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` |
| `-o` | `--org` | Organization name | string | `INFLUX_ORG` |
| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-p` | `--precision` | Precision of the timestamps (default `ns`) | string | `INFLUX_PRECISION` |

View File

@ -322,7 +322,7 @@ engine-path = "/users/user/.influxdbv2/engine"
Define the bind address for the InfluxDB HTTP API.
Customize the URL and port for the InfluxDB API and UI.
**Default:** `:9999`
**Default:** `:8086`
| influxd flag | Environment variable | Configuration key |
|:------------ |:-------------------- |:----------------- |
@ -330,12 +330,12 @@ Customize the URL and port for the InfluxDB API and UI.
###### influxd flag
```sh
influxd --http-bind-address=:9999
influxd --http-bind-address=:8086
```
###### Environment variable
```sh
export INFLUXD_HTTP_BIND_ADDRESS=:9999
export INFLUXD_HTTP_BIND_ADDRESS=:8086
```
###### Configuration file
@ -347,18 +347,18 @@ export INFLUXD_HTTP_BIND_ADDRESS=:9999
{{% /code-tabs %}}
{{% code-tab-content %}}
```yml
http-bind-address: ":9999"
http-bind-address: ":8086"
```
{{% /code-tab-content %}}
{{% code-tab-content %}}
```toml
http-bind-address = ":9999"
http-bind-address = ":8086"
```
{{% /code-tab-content %}}
{{% code-tab-content %}}
```json
{
"http-bind-address": ":9999"
"http-bind-address": ":8086"
}
```
{{% /code-tab-content %}}

View File

@ -364,7 +364,7 @@ regexp_escape_char = `\` (`/` | `\`)
```js
/.*/
/http:\/\/localhost:9999/
/http:\/\/localhost:8086/
/^\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e(ZZ)?$/
/^日本語(ZZ)?$/ // the above two lines are equivalent
/\\xZZ/ // this becomes the literal pattern "\xZZ"

View File

@ -22,7 +22,7 @@ _**Function type:** Input_
```js
import "experimental/csv"
csv.from(url: "http://localhost:9999/")
csv.from(url: "http://localhost:8086/")
```
## Parameters

View File

@ -19,7 +19,7 @@ _**Function type:** Miscellaneous_
import "experimental/http"
http.get(
url: "http://localhost:9999/",
url: "http://localhost:8086/",
headers: {x:"a", y:"b", z:"c"},
timeout: 30s
)
@ -76,7 +76,7 @@ import "csv"
token = secrets.get(key: "READONLY_TOKEN")
response = http.get(
url: "http://localhost:9999/health",
url: "http://localhost:8086/health",
headers: {Authorization: "Token ${token}"}
)

View File

@ -22,7 +22,7 @@ _**Function type:** Input_
import "experimental/prometheus"
prometheus.scrape(
url: "http://localhost:9999/metrics"
url: "http://localhost:8086/metrics"
)
```

View File

@ -21,7 +21,7 @@ _**Function type:** Output_
import "http"
http.post(
url: "http://localhost:9999/",
url: "http://localhost:8086/",
headers: {x:"a", y:"b", z:"c"},
data: bytes(v: "body")
)

View File

@ -962,7 +962,7 @@ string values are annotated with the `string` datatype.
### TCP
InfluxDB uses Transmission Control Protocol (TCP) port 9999 for client-server communication over the InfluxDB HTTP API.
InfluxDB uses Transmission Control Protocol (TCP) port 8086 for client-server communication over the InfluxDB HTTP API.
<!--ports for InfluxDB Enterprise -->

View File

@ -27,7 +27,7 @@ For InfluxDB OSS, the default URL is the following:
{{< keep-url >}}
```
http://localhost:9999/
http://localhost:8086/
```
### Customize your InfluxDB OSS URL

View File

@ -104,13 +104,13 @@ InfluxDB supports three types of TLS certificates:
Ensure you can connect over HTTPS by running
```
curl -v https://localhost:9999/api/v2/ping
curl -v https://localhost:8086/api/v2/ping
```
If using a self-signed certificate, use the `-k` flag to skip certificate verification:
```
curl -vk https://localhost:9999/api/v2/ping
curl -vk https://localhost:8086/api/v2/ping
```
With this command, you should see output confirming a succussful TLS handshake.
@ -136,7 +136,7 @@ update the following `influxdb_v2` output settings in your Telegraf configuratio
##
## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval.
urls = ["https://127.0.0.1:9999"]
urls = ["https://127.0.0.1:8086"]
[...]

View File

@ -43,7 +43,7 @@ add a new secret to your organization.
<!-- -->
```sh
curl -XPATCH http://localhost:9999/api/v2/orgs/<org-id>/secrets \
curl -XPATCH http://localhost:8086/api/v2/orgs/<org-id>/secrets \
-H 'Authorization: Token YOURAUTHTOKEN' \
-H 'Content-type: application/json' \
--data '{

View File

@ -35,7 +35,7 @@ to delete one or more secrets.
<!-- -->
```bash
curl -XGET http://localhost:9999/api/v2/orgs/<org-id>/secrets/delete \
curl -XGET http://localhost:8086/api/v2/orgs/<org-id>/secrets/delete \
--H 'Authorization: Token YOURAUTHTOKEN'
--data '{
"secrets": [

View File

@ -43,7 +43,7 @@ to update a secret in your organization.
<!-- -->
```sh
curl -XPATCH http://localhost:9999/api/v2/orgs/<org-id>/secrets \
curl -XPATCH http://localhost:8086/api/v2/orgs/<org-id>/secrets \
-H 'Authorization: Token YOURAUTHTOKEN' \
-H 'Content-type: application/json' \
--data '{

View File

@ -29,6 +29,6 @@ to view your organization's secrets keys.
<!-- -->
```sh
curl -XGET http://localhost:9999/api/v2/orgs/<org-id>/secrets \
curl -XGET http://localhost:8086/api/v2/orgs/<org-id>/secrets \
-H 'Authorization: Token YOURAUTHTOKEN'
```

View File

@ -23,7 +23,7 @@ the configuration from an InfluxDB HTTP(S) endpoint.
InfluxDB Telegraf configuration. For example:
```sh
telegraf --config http://localhost:9999/api/v2/telegrafs/<telegraf-config-id>
telegraf --config http://localhost:8086/api/v2/telegrafs/<telegraf-config-id>
```
{{% note %}}

View File

@ -30,7 +30,7 @@ to the [`from()` function](/influxdb/v2.0/reference/flux/stdlib/built-in/inputs/
```js
from(bucket: "example-bucket",
host: "http://localhost:9999",
host: "http://localhost:8086",
org: "example-org",
token: "My5uP3rS3cRetT0k3n"
)

View File

@ -23,7 +23,7 @@ Use the InfluxDB UI or `influx` CLI to view your dashboard ID.
When viewing a dashboard in the InfluxDB UI, your dashboard ID appears in the URL.
<pre class="highlight">
http://localhost:9999/orgs/03a2bbf46249a000/dashboards/<span class="bp" style="font-weight:bold;margin:0 .15rem">04b6b15034cc000</span>/...
http://localhost:8086/orgs/03a2bbf46249a000/dashboards/<span class="bp" style="font-weight:bold;margin:0 .15rem">04b6b15034cc000</span>/...
</pre>
### Dashboard ID in the CLI

View File

@ -51,7 +51,7 @@ configure your InfluxDB connection:
- **URL**: Your [InfluxDB URL](/influxdb/v2.0/reference/urls/) **with the `/api/v2` path**.
```sh
http://localhost:9999/api/v2
http://localhost:8086/api/v2
```
- **Organization**: Your InfluxDB [organization name **or** ID](/influxdb/v2.0/organizations/view-orgs/).

View File

@ -152,7 +152,7 @@ Click **Quick Start**.
InfluxDB creates and configures a new [scraper](/influxdb/v2.0/write-data/no-code/scrape-data/).
The target URL points to the `/metrics` HTTP endpoint of your local InfluxDB instance
(for example, `http://localhost:9999/metrics`), which outputs internal InfluxDB
(for example, `http://localhost:8086/metrics`), which outputs internal InfluxDB
metrics in the [Prometheus data format](https://prometheus.io/docs/instrumenting/exposition_formats/).
The scraper stores the scraped metrics in the bucket created during the
[initial setup process](/influxdb/v2.0/get-started/#set-up-influxdb).

View File

@ -74,7 +74,7 @@ In the `influxdb_v2` output plugin configuration in your `telegraf.conf`, set th
```toml
[[outputs.influxdb_v2]]
urls = ["http://localhost:9999"]
urls = ["http://localhost:8086"]
# ...
content_encoding = "gzip"
```
@ -94,7 +94,7 @@ When using the InfluxDB API `/write` endpoint to write data, set the `Content-En
header to `gzip` to compress the request data.
```sh
curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \
curl -XPOST "http://localhost:8086/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \
--header "Authorization: Token YOURAUTHTOKEN" \
--header "Content-Encoding: gzip" \
--data-raw "mem,host=host1 used_percent=23.43234543 1556896326"

View File

@ -36,7 +36,7 @@ Compressing write requests reduces network bandwidth, but increases server-side
{{% /code-tabs %}}
{{% code-tab-content %}}
```sh
curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \
curl -XPOST "http://localhost:8086/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \
--header "Authorization: Token YOURAUTHTOKEN" \
--data-raw "
mem,host=host1 used_percent=23.43234543 1556896326
@ -48,7 +48,7 @@ mem,host=host2 used_percent=27.18294630 1556896336
{{% /code-tab-content %}}
{{% code-tab-content %}}
```bash
curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \
curl -XPOST "http://localhost:8086/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \
--header "Authorization: Token YOURAUTHTOKEN" \
--header "Content-Encoding: gzip" \
--data-raw "

View File

@ -23,7 +23,7 @@ Create a new scraper in the InfluxDB user interface (UI).
4. Enter a **Name** for the scraper.
5. Select a **Bucket** to store the scraped data.
6. Enter the **Target URL** to scrape.
The default URL value is `http://localhost:9999/metrics`,
The default URL value is `http://localhost:8086/metrics`,
which provides InfluxDB-specific metrics in the [Prometheus data format](https://prometheus.io/docs/instrumenting/exposition_formats/).
7. Click **Create**.

View File

@ -70,7 +70,7 @@ To configure Apache JMeter, complete the following steps in InfluxDB and JMeter.
```
- **influxdbUrl**: _(include the bucket and org you created in InfluxDB)_
```
http://localhost:9999/api/v2/write?org=my-org&bucket=jmeter
http://localhost:8086/api/v2/write?org=my-org&bucket=jmeter
```
- **application**: `InfluxDB2`
- **influxdbToken**: _your InfluxDB authentication token_

View File

@ -32,7 +32,7 @@ for using Telegraf with InfluxDB v2.0._
## Create a Telegraf configuration
1. Open the InfluxDB UI _(default: [localhost:9999](http://localhost:9999))_.
1. Open the InfluxDB UI _(default: [localhost:8086](http://localhost:8086))_.
2. In the navigation menu on the left, select **Data** (**Load Data**) > **Telegraf**.
{{< nav-icon "load data" >}}
@ -140,7 +140,7 @@ For the exact command, see the Telegraf configuration **Setup Instructions** in
{{% /note %}}
```sh
telegraf -config http://localhost:9999/api/v2/telegrafs/0xoX00oOx0xoX00o
telegraf -config http://localhost:8086/api/v2/telegrafs/0xoX00oOx0xoX00o
```
## Manage Telegraf configurations

View File

@ -129,7 +129,7 @@ The example below illustrates an `influxdb_v2` configuration.
# ...
[[outputs.influxdb_v2]]
urls = ["http://localhost:9999"]
urls = ["http://localhost:8086"]
token = "$INFLUX_TOKEN"
organization = "example-org"
bucket = "example-bucket"

View File

@ -3,8 +3,8 @@ oss:
providers:
- name: Default
regions:
- name: localhost:9999
url: http://localhost:9999
- name: localhost:8086
url: http://localhost:8086
- name: Custom
url: http://example.com:8080