diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 177a4a422..eb5112fc9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -649,7 +649,7 @@ When a user selects an InfluxDB product and region, example URLs in code blocks throughout the documentation are updated to match their product and region. InfluxDB URLs are configured in `/data/influxdb_urls.yml`. -By default, the InfluxDB URL replaced inside of code blocks is `http://localhost:9999`. +By default, the InfluxDB URL replaced inside of code blocks is `http://localhost:8086`. Use this URL in all code examples that should be updated with a selected provider and region. For example: @@ -657,14 +657,14 @@ For example: ~~~ ```sh # This URL will get updated -http://localhost:9999 +http://localhost:8086 # This URL will NOT get updated http://example.com ``` ~~~ -If the user selects the **US West (Oregon)** region, all occurrences of `http://localhost:9999` +If the user selects the **US West (Oregon)** region, all occurrences of `http://localhost:8086` in code blocks will get updated to `https://us-west-2-1.aws.cloud2.influxdata.com`. ### Exempt URLs from getting updated @@ -675,7 +675,7 @@ just before the code block. {{< keep-url >}} ``` // This URL won't get updated -http://localhost:9999 +http://localhost:8086 ``` ~~~ diff --git a/assets/js/influxdb-url.js b/assets/js/influxdb-url.js index 176093314..1449f1537 100644 --- a/assets/js/influxdb-url.js +++ b/assets/js/influxdb-url.js @@ -1,7 +1,8 @@ -var defaultUrl = "http://localhost:9999" +var defaultUrl = "http://localhost:8086" var placeholderCloudUrl = "https://cloud2.influxdata.com" var defaultCloudUrl = "https://us-west-2-1.aws.cloud2.influxdata.com" var elementSelector = ".article--content pre:not(.preserve)" +var isInfluxDBv1 = /influxdb\/v1/.test(window.location.href) // Retrieve the selected URL from the influxdb_url session cookie function getUrl() { @@ -25,23 +26,29 @@ function getPrevUrl() { } // Iterate through code blocks and update InfluxDB urls +// Ignore URLs in InfluxDB 1.x docs function updateUrls(currentUrl, newUrl) { - if (typeof currentUrl != newUrl) { - $(elementSelector).each(function() { - $(this).html($(this).html().replace(currentUrl, newUrl)); - }); + if (!isInfluxDBv1) { + if (typeof currentUrl != newUrl) { + $(elementSelector).each(function() { + $(this).html($(this).html().replace(currentUrl, newUrl)); + }); + } } } // Append the URL selector button to each codeblock with an InfluxDB URL +// Ignore codeblocks on InfluxDB v1.x pages function appendUrlSelector(currentUrl, selectorText) { - $(elementSelector).each(function() { - var code = $(this).html() - if (code.includes(currentUrl)) { - $(this).after("
") - $('.select-url').fadeIn(400) - } - }); + if (!isInfluxDBv1) { + $(elementSelector).each(function() { + var code = $(this).html() + if (code.includes(currentUrl)) { + $(this).after("") + $('.select-url').fadeIn(400) + } + }); + } } // Toggle the URL selector modal window diff --git a/content/chronograf/v1.6/administration/creating-connections.md b/content/chronograf/v1.6/administration/creating-connections.md index bf5c5a4f3..b4accb242 100644 --- a/content/chronograf/v1.6/administration/creating-connections.md +++ b/content/chronograf/v1.6/administration/creating-connections.md @@ -51,6 +51,7 @@ An `.src` files contains the details for a single InfluxDB connection. Create a new file named `example.src` (the filename is arbitrary) and place it at Chronograf's `resource-path`. All `.src` files should contain the following: +{{< keep-url >}} ```json { "id": "10000", diff --git a/content/chronograf/v1.6/administration/managing-influxdb-users.md b/content/chronograf/v1.6/administration/managing-influxdb-users.md index b0bc1f55a..12443012f 100644 --- a/content/chronograf/v1.6/administration/managing-influxdb-users.md +++ b/content/chronograf/v1.6/administration/managing-influxdb-users.md @@ -65,6 +65,7 @@ Run the `curl` command below to create an admin user, replacing: * `chronothan` with your own username * `supersecret` with your own password (note that the password requires single quotes) +{{< keep-url >}} ``` ~# curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE USER chronothan WITH PASSWORD 'supersecret' WITH ALL PRIVILEGES" ``` diff --git a/content/chronograf/v1.6/guides/live_leaderboard.md b/content/chronograf/v1.6/guides/live_leaderboard.md index d5b31e098..30e49e2fe 100644 --- a/content/chronograf/v1.6/guides/live_leaderboard.md +++ b/content/chronograf/v1.6/guides/live_leaderboard.md @@ -187,6 +187,7 @@ max Since we are writing data back to InfluxDB create a database `game` for our results. +{{< keep-url >}} ``` curl -G 'http://localhost:8086/query?' --data-urlencode 'q=CREATE DATABASE game' ``` @@ -274,6 +275,7 @@ Hit the endpoint several times to see that the scores are updating once a second Now, let's check InfluxDB to see our historical data. +{{< keep-url >}} ```bash curl \ -G 'http://localhost:8086/query?db=game' \ diff --git a/content/chronograf/v1.6/guides/monitoring-influxenterprise-clusters.md b/content/chronograf/v1.6/guides/monitoring-influxenterprise-clusters.md index 4a928523e..5ecca204d 100644 --- a/content/chronograf/v1.6/guides/monitoring-influxenterprise-clusters.md +++ b/content/chronograf/v1.6/guides/monitoring-influxenterprise-clusters.md @@ -85,6 +85,7 @@ Because you enabled authentication, you must perform this step before moving on Run the command below to create an admin user, replacing `chronothan` and `supersecret` with your own username and password. Note that the password requires single quotes. +{{< keep-url >}} ``` ~# curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE USER chronothan WITH PASSWORD 'supersecret' WITH ALL PRIVILEGES" ``` @@ -173,6 +174,8 @@ Repeat steps one through four for each data node in your cluster. Run the following command on your InfluxDB OSS instance to see if your Telegraf instances are successfully collecting and writing data. Replace the `chronothan` and `supersecret` values with your actual username and password. + +{{< keep-url >}} ``` ~# curl -G "http://localhost:8086/query?db=telegraf&u=chronothan&p=supersecret&pretty=true" --data-urlencode "q=SHOW TAG VALUES FROM cpu WITH KEY=host" ``` diff --git a/content/chronograf/v1.7/administration/creating-connections.md b/content/chronograf/v1.7/administration/creating-connections.md index 2c3780423..b50cdaf1e 100644 --- a/content/chronograf/v1.7/administration/creating-connections.md +++ b/content/chronograf/v1.7/administration/creating-connections.md @@ -85,6 +85,7 @@ An `.src` files contains the details for a single InfluxDB connection. Create a new file named `example.src` (the filename is arbitrary) and place it at Chronograf's `resource-path`. All `.src` files should contain the following: +{{< keep-url >}} ```json { "id": "10000", diff --git a/content/chronograf/v1.7/administration/managing-influxdb-users.md b/content/chronograf/v1.7/administration/managing-influxdb-users.md index 660230a73..d78b23b6f 100644 --- a/content/chronograf/v1.7/administration/managing-influxdb-users.md +++ b/content/chronograf/v1.7/administration/managing-influxdb-users.md @@ -64,6 +64,7 @@ Run the `curl` command below to create an admin user, replacing: * `chronothan` with your own username * `supersecret` with your own password (note that the password requires single quotes) +{{< keep-url >}} ``` ~# curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE USER chronothan WITH PASSWORD 'supersecret' WITH ALL PRIVILEGES" ``` diff --git a/content/chronograf/v1.7/guides/live_leaderboard.md b/content/chronograf/v1.7/guides/live_leaderboard.md index fea4ba8f6..9c32dfa75 100644 --- a/content/chronograf/v1.7/guides/live_leaderboard.md +++ b/content/chronograf/v1.7/guides/live_leaderboard.md @@ -187,6 +187,7 @@ max Since we are writing data back to InfluxDB create a database `game` for our results. +{{< keep-url >}} ``` curl -G 'http://localhost:8086/query?' --data-urlencode 'q=CREATE DATABASE game' ``` @@ -274,6 +275,7 @@ Hit the endpoint several times to see that the scores are updating once a second Now, let's check InfluxDB to see our historical data. +{{< keep-url >}} ```bash curl \ -G 'http://localhost:8086/query?db=game' \ diff --git a/content/chronograf/v1.7/guides/monitoring-influxenterprise-clusters.md b/content/chronograf/v1.7/guides/monitoring-influxenterprise-clusters.md index e2c243583..852276864 100644 --- a/content/chronograf/v1.7/guides/monitoring-influxenterprise-clusters.md +++ b/content/chronograf/v1.7/guides/monitoring-influxenterprise-clusters.md @@ -85,6 +85,7 @@ Because you enabled authentication, you must perform this step before moving on Run the command below to create an admin user, replacing `chronothan` and `supersecret` with your own username and password. Note that the password requires single quotes. +{{< keep-url >}} ``` ~# curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE USER chronothan WITH PASSWORD 'supersecret' WITH ALL PRIVILEGES" ``` @@ -173,6 +174,8 @@ Repeat steps one through four for each data node in your cluster. Run the following command on your InfluxDB OSS instance to see if your Telegraf instances are successfully collecting and writing data. Replace the `chronothan` and `supersecret` values with your actual username and password. + +{{< keep-url >}} ``` ~# curl -G "http://localhost:8086/query?db=telegraf&u=chronothan&p=supersecret&pretty=true" --data-urlencode "q=SHOW TAG VALUES FROM cpu WITH KEY=host" ``` diff --git a/content/chronograf/v1.8/administration/creating-connections.md b/content/chronograf/v1.8/administration/creating-connections.md index fbd67a098..818a4effb 100644 --- a/content/chronograf/v1.8/administration/creating-connections.md +++ b/content/chronograf/v1.8/administration/creating-connections.md @@ -85,6 +85,7 @@ An `.src` files contains the details for a single InfluxDB connection. Create a new file named `example.src` (the filename is arbitrary) and place it at Chronograf's `resource-path`. All `.src` files should contain the following: +{{< keep-url >}} ```json { "id": "10000", diff --git a/content/chronograf/v1.8/administration/managing-influxdb-users.md b/content/chronograf/v1.8/administration/managing-influxdb-users.md index f78c017a2..873b611d7 100644 --- a/content/chronograf/v1.8/administration/managing-influxdb-users.md +++ b/content/chronograf/v1.8/administration/managing-influxdb-users.md @@ -66,6 +66,7 @@ Run the `curl` command below to create an admin user, replacing: * `chronothan` with your own username * `supersecret` with your own password (note that the password requires single quotes) +{{< keep-url >}} ``` ~# curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE USER chronothan WITH PASSWORD 'supersecret' WITH ALL PRIVILEGES" ``` diff --git a/content/chronograf/v1.8/guides/live_leaderboard.md b/content/chronograf/v1.8/guides/live_leaderboard.md index 78e1dacbc..fea349c3b 100644 --- a/content/chronograf/v1.8/guides/live_leaderboard.md +++ b/content/chronograf/v1.8/guides/live_leaderboard.md @@ -187,6 +187,7 @@ max Since we are writing data back to InfluxDB create a database `game` for our results. +{{< keep-url >}} ``` curl -G 'http://localhost:8086/query?' --data-urlencode 'q=CREATE DATABASE game' ``` @@ -274,6 +275,7 @@ Hit the endpoint several times to see that the scores are updating once a second Now, let's check InfluxDB to see our historical data. +{{< keep-url >}} ```bash curl \ -G 'http://localhost:8086/query?db=game' \ diff --git a/content/chronograf/v1.8/guides/monitoring-influxenterprise-clusters.md b/content/chronograf/v1.8/guides/monitoring-influxenterprise-clusters.md index 185e8bf9e..dbc86ef5d 100644 --- a/content/chronograf/v1.8/guides/monitoring-influxenterprise-clusters.md +++ b/content/chronograf/v1.8/guides/monitoring-influxenterprise-clusters.md @@ -85,6 +85,7 @@ Because you enabled authentication, you must perform this step before moving on Run the command below to create an admin user, replacing `chronothan` and `supersecret` with your own username and password. Note that the password requires single quotes. +{{< keep-url >}} ``` ~# curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE USER chronothan WITH PASSWORD 'supersecret' WITH ALL PRIVILEGES" ``` @@ -199,6 +200,7 @@ $ influx Replace the `chronothan` and `supersecret` values with your actual username and password. +{{< keep-url >}} ``` ~# curl -G "http://localhost:8086/query?db=telegraf&u=chronothan&p=supersecret&pretty=true" --data-urlencode "q=SHOW TAG VALUES FROM cpu WITH KEY=host" ``` diff --git a/content/enterprise_influxdb/v1.8/administration/anti-entropy-api.md b/content/enterprise_influxdb/v1.8/administration/anti-entropy-api.md index 7a885299d..9945805dd 100644 --- a/content/enterprise_influxdb/v1.8/administration/anti-entropy-api.md +++ b/content/enterprise_influxdb/v1.8/administration/anti-entropy-api.md @@ -17,7 +17,7 @@ Use the [Anti-Entropy service](/enterprise_influxdb/v1.8/administration/anti-ent The base URL is: ```text -http://localhost:8086/shard-repair` +http://localhost:8086/shard-repair ``` ## GET `/status` diff --git a/content/influxdb/v2.0/get-started.md b/content/influxdb/v2.0/get-started.md index 052be1845..7c3a74e79 100644 --- a/content/influxdb/v2.0/get-started.md +++ b/content/influxdb/v2.0/get-started.md @@ -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 diff --git a/content/influxdb/v2.0/monitor-alert/templates/infrastructure/aws.md b/content/influxdb/v2.0/monitor-alert/templates/infrastructure/aws.md index 4b8b7618d..552295a21 100644 --- a/content/influxdb/v2.0/monitor-alert/templates/infrastructure/aws.md +++ b/content/influxdb/v2.0/monitor-alert/templates/infrastructure/aws.md @@ -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" diff --git a/content/influxdb/v2.0/organizations/view-orgs.md b/content/influxdb/v2.0/organizations/view-orgs.md index 2c973a316..9bfb32aa0 100644 --- a/content/influxdb/v2.0/organizations/view-orgs.md +++ b/content/influxdb/v2.0/organizations/view-orgs.md @@ -45,7 +45,7 @@ After logging in to the InfluxDB UI, your organization ID appears in the URL.-http://localhost:9999/orgs/03a2bbf46249a000/... +http://localhost:8086/orgs/03a2bbf46249a000/...diff --git a/content/influxdb/v2.0/query-data/execute-queries.md b/content/influxdb/v2.0/query-data/execute-queries.md index 2988edc51..33981510c 100644 --- a/content/influxdb/v2.0/query-data/execute-queries.md +++ b/content/influxdb/v2.0/query-data/execute-queries.md @@ -14,7 +14,7 @@ There are multiple ways to execute queries with InfluxDB. This guide covers the different options: - [Data Explorer](#data-explorer) -- [Influx REPL](#influx-repl) +- [Flux REPL](#flux-repl) - [Influx query command](#influx-query-command) - [InfluxDB API](#influxdb-api) @@ -23,18 +23,13 @@ Queries can be built, executed, and visualized in InfluxDB UI's Data Explorer.  -## Influx REPL +## Flux REPL The [Flux REPL](/influxdb/v2.0/tools/repl/) starts an interactive Read-Eval-Print Loop (REPL) where you can write and execute Flux queries. - - - - - -{{% note %}} -`ctrl-d` will close the REPL. -{{% /note %}} +```sh +./flux repl +``` ## Influx query command You can pass queries to the [`influx query` command](/influxdb/v2.0/reference/cli/influx/query) @@ -85,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' \ @@ -98,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' \ diff --git a/content/influxdb/v2.0/query-data/flux/sql.md b/content/influxdb/v2.0/query-data/flux/sql.md index 21a45b055..7be1d5e90 100644 --- a/content/influxdb/v2.0/query-data/flux/sql.md +++ b/content/influxdb/v2.0/query-data/flux/sql.md @@ -204,7 +204,7 @@ to store your database credentials as secrets. {{% /tabs %}} {{% tab-content %}} ```sh -curl -X PATCH http://localhost:9999/api/v2/orgs/
-http://localhost:9999/orgs/03a2bbf46249a000/dashboards/04b6b15034cc000/... +http://localhost:8086/orgs/03a2bbf46249a000/dashboards/04b6b15034cc000/...### Dashboard ID in the CLI diff --git a/content/influxdb/v2.0/visualize-data/other-tools/grafana.md b/content/influxdb/v2.0/visualize-data/other-tools/grafana.md index ac5e4387e..81f743e22 100644 --- a/content/influxdb/v2.0/visualize-data/other-tools/grafana.md +++ b/content/influxdb/v2.0/visualize-data/other-tools/grafana.md @@ -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/). diff --git a/content/influxdb/v2.0/write-data/_index.md b/content/influxdb/v2.0/write-data/_index.md index 2c5dd50ad..b0501cccc 100644 --- a/content/influxdb/v2.0/write-data/_index.md +++ b/content/influxdb/v2.0/write-data/_index.md @@ -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). diff --git a/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md b/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md index b7df11ac3..062fe47b3 100644 --- a/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md +++ b/content/influxdb/v2.0/write-data/best-practices/optimize-writes.md @@ -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" diff --git a/content/influxdb/v2.0/write-data/developer-tools/api.md b/content/influxdb/v2.0/write-data/developer-tools/api.md index 5c0c2f5f7..64122ebb7 100644 --- a/content/influxdb/v2.0/write-data/developer-tools/api.md +++ b/content/influxdb/v2.0/write-data/developer-tools/api.md @@ -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 " diff --git a/content/influxdb/v2.0/write-data/no-code/scrape-data/manage-scrapers/create-a-scraper.md b/content/influxdb/v2.0/write-data/no-code/scrape-data/manage-scrapers/create-a-scraper.md index 81110e502..433f33049 100644 --- a/content/influxdb/v2.0/write-data/no-code/scrape-data/manage-scrapers/create-a-scraper.md +++ b/content/influxdb/v2.0/write-data/no-code/scrape-data/manage-scrapers/create-a-scraper.md @@ -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**. diff --git a/content/influxdb/v2.0/write-data/no-code/third-party.md b/content/influxdb/v2.0/write-data/no-code/third-party.md index dbf568e25..fbffd9157 100644 --- a/content/influxdb/v2.0/write-data/no-code/third-party.md +++ b/content/influxdb/v2.0/write-data/no-code/third-party.md @@ -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_ diff --git a/content/influxdb/v2.0/write-data/no-code/use-telegraf/auto-config.md b/content/influxdb/v2.0/write-data/no-code/use-telegraf/auto-config.md index cabeb0151..f7b05f8f2 100644 --- a/content/influxdb/v2.0/write-data/no-code/use-telegraf/auto-config.md +++ b/content/influxdb/v2.0/write-data/no-code/use-telegraf/auto-config.md @@ -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 diff --git a/content/influxdb/v2.0/write-data/no-code/use-telegraf/manual-config.md b/content/influxdb/v2.0/write-data/no-code/use-telegraf/manual-config.md index 1e43f0909..5fb2a0bc1 100644 --- a/content/influxdb/v2.0/write-data/no-code/use-telegraf/manual-config.md +++ b/content/influxdb/v2.0/write-data/no-code/use-telegraf/manual-config.md @@ -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" diff --git a/content/kapacitor/v1.4/administration/configuration.md b/content/kapacitor/v1.4/administration/configuration.md index a47bdba71..fa3aa4267 100644 --- a/content/kapacitor/v1.4/administration/configuration.md +++ b/content/kapacitor/v1.4/administration/configuration.md @@ -298,6 +298,7 @@ but one InfluxDB table array configuration must be flagged as the `default`. **Example 8 – An InfluxDB Connection grouping** +{{< keep-url >}} ```toml ... [[influxdb]] diff --git a/content/kapacitor/v1.4/administration/security.md b/content/kapacitor/v1.4/administration/security.md index ea1a71e5d..500e62b00 100644 --- a/content/kapacitor/v1.4/administration/security.md +++ b/content/kapacitor/v1.4/administration/security.md @@ -60,6 +60,7 @@ When testing with a **self-signed certificate** it is also important to switch o certificate verification with the property `insecure-skip-verify`. Failure to do so will result in x509 certificate errors as follows: +{{< keep-url >}} ``` ts=2018-02-19T13:26:11.437+01:00 lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=localhost err="Get https://localhost:8086/ping: x509: certificate is valid for lenovo-TP02, not localhost" ``` @@ -71,6 +72,8 @@ ts=2018-02-19T13:26:11.437+01:00 lvl=error msg="failed to connect to InfluxDB, r In the configuration file these values are set according to the following example. **Example 1 – TLS Configuration Properties for InfluxDB – kapacitor.conf** + +{{< keep-url >}} ```toml [[influxdb]] # Connect to an InfluxDB cluster @@ -106,6 +109,8 @@ Note that when a CA file contains the certificate and key together the property As environment variables these properties can be set as follows: **Example 2 – TLS Configuration Properties for InfluxDB – ENVARS** + +{{< keep-url >}} ``` KAPACITOR_INFLUXDB_0_URLS_0="https://localhost:8086" KAPACITOR_INFLUXDB_0_SSL_CERT="/etc/ssl/influxdb-selfsigned.crt" @@ -129,6 +134,7 @@ This results in the following file: **Example 3 – The InfluxDB part of the Kapacitor configuration** +{{< keep-url >}} ```json { "elements": [ @@ -223,6 +229,7 @@ file, as environment variables or over the HTTP API. **Example 4 – InfluxDB Authentication Parameters – kapacitor.conf** +{{< keep-url >}} ```toml [[influxdb]] # Connect to an InfluxDB cluster diff --git a/content/kapacitor/v1.4/guides/live_leaderboard.md b/content/kapacitor/v1.4/guides/live_leaderboard.md index ef045c6d3..11a8b3564 100644 --- a/content/kapacitor/v1.4/guides/live_leaderboard.md +++ b/content/kapacitor/v1.4/guides/live_leaderboard.md @@ -188,6 +188,7 @@ max Since we are writing data back to InfluxDB create a database `game` for our results. +{{< keep-url >}} ``` curl -G 'http://localhost:8086/query?' --data-urlencode 'q=CREATE DATABASE game' ``` @@ -275,6 +276,7 @@ Hit the endpoint several times to see that the scores are updating once a second Now, let's check InfluxDB to see our historical data. +{{< keep-url >}} ```bash curl \ -G 'http://localhost:8086/query?db=game' \ diff --git a/content/kapacitor/v1.4/introduction/getting-started.md b/content/kapacitor/v1.4/introduction/getting-started.md index 3d8eebc59..b3d8d22dd 100644 --- a/content/kapacitor/v1.4/introduction/getting-started.md +++ b/content/kapacitor/v1.4/introduction/getting-started.md @@ -114,6 +114,8 @@ The Telegraf configuration file can be found at its default location: `/etc/tele * `[[inputs.cpu]]` - declares how to collect the system cpu metrics to be sent to InfluxDB. *Example - relevant sections of `/etc/telegraf/telegraf.conf`* + +{{< keep-url >}} ``` [agent] ## Default data collection interval for all inputs @@ -191,6 +193,7 @@ InfluxDB and Telegraf are now running and listening on localhost. Wait about a This can be achieved with the following query: +{{< keep-url >}} ```bash $ curl -G 'http://localhost:8086/query?db=telegraf' --data-urlencode 'q=SELECT mean(usage_idle) FROM cpu' ``` @@ -376,6 +379,7 @@ Telegraf will log errors if it cannot communicate to InfluxDB. InfluxDB will log an error about `connection refused` if it cannot send data to Kapacitor. Run the query `SHOW SUBSCRIPTIONS` to find the endpoint that InfluxDB is using to send data to Kapacitor. +{{< keep-url >}} ``` $ curl -G 'http://localhost:8086/query?db=telegraf' --data-urlencode 'q=SHOW SUBSCRIPTIONS' diff --git a/content/kapacitor/v1.4/introduction/install-docker.md b/content/kapacitor/v1.4/introduction/install-docker.md index c546b1612..7ab74466a 100644 --- a/content/kapacitor/v1.4/introduction/install-docker.md +++ b/content/kapacitor/v1.4/introduction/install-docker.md @@ -127,6 +127,7 @@ At this point there should be running on the host machine: InfluxDB, Telegraf an The running configuration can be further inspected by using the `influx` command line client directly from the InfluxDB Container. +{{< keep-url >}} ``` $ docker exec -it tik_influxdb_1 influx --precision rfc3339 Connected to http://localhost:8086 version 1.3.3 diff --git a/content/kapacitor/v1.4/working/api.md b/content/kapacitor/v1.4/working/api.md index 847eac676..c6d2b234f 100644 --- a/content/kapacitor/v1.4/working/api.md +++ b/content/kapacitor/v1.4/working/api.md @@ -1860,6 +1860,7 @@ Retrieve all the configuration sections which can be overridden. GET /kapacitor/v1/config ``` +{{< keep-url >}} ```json { "link" : {"rel": "self", "href": "/kapacitor/v1/config"}, @@ -1986,6 +1987,7 @@ Retrieve only the InfluxDB section. GET /kapacitor/v1/config/influxdb ``` +{{< keep-url >}} ```json { "link" : {"rel": "self", "href": "/kapacitor/v1/config/influxdb"}, diff --git a/content/kapacitor/v1.5/administration/configuration.md b/content/kapacitor/v1.5/administration/configuration.md index af48de4d2..a38310775 100644 --- a/content/kapacitor/v1.5/administration/configuration.md +++ b/content/kapacitor/v1.5/administration/configuration.md @@ -340,6 +340,7 @@ To use Kapacitor with an InfluxDB instance that requires authentication, it must authenticate using an InfluxDB user with **read and write** permissions. {{% /note %}} +{{< keep-url >}} ```toml ... [[influxdb]] diff --git a/content/kapacitor/v1.5/administration/security.md b/content/kapacitor/v1.5/administration/security.md index fc6884d65..d2971c932 100644 --- a/content/kapacitor/v1.5/administration/security.md +++ b/content/kapacitor/v1.5/administration/security.md @@ -59,6 +59,7 @@ When testing with a **self-signed certificate** it is also important to switch o certificate verification with the property `insecure-skip-verify`. Failure to do so will result in x509 certificate errors as follows: +{{< keep-url >}} ``` ts=2018-02-19T13:26:11.437+01:00 lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=localhost err="Get https://localhost:8086/ping: x509: certificate is valid for lenovo-TP02, not localhost" ``` @@ -70,6 +71,8 @@ ts=2018-02-19T13:26:11.437+01:00 lvl=error msg="failed to connect to InfluxDB, r In the configuration file these values are set according to the following example. **Example 1 – TLS Configuration Properties for InfluxDB – kapacitor.conf** + +{{< keep-url >}} ```toml [[influxdb]] # Connect to an InfluxDB cluster @@ -105,6 +108,8 @@ Note that when a CA file contains the certificate and key together the property As environment variables these properties can be set as follows: **Example 2 – TLS Configuration Properties for InfluxDB – ENVARS** + +{{< keep-url >}} ``` KAPACITOR_INFLUXDB_0_URLS_0="https://localhost:8086" KAPACITOR_INFLUXDB_0_SSL_CERT="/etc/ssl/influxdb-selfsigned.crt" @@ -128,6 +133,7 @@ This results in the following file: **Example 3 – The InfluxDB part of the Kapacitor configuration** +{{< keep-url >}} ```json { "elements": [ @@ -222,6 +228,7 @@ file, as environment variables or over the HTTP API. **Example 4 – InfluxDB Authentication Parameters – kapacitor.conf** +{{< keep-url >}} ```toml [[influxdb]] # Connect to an InfluxDB cluster diff --git a/content/kapacitor/v1.5/guides/live_leaderboard.md b/content/kapacitor/v1.5/guides/live_leaderboard.md index 82b17c8c5..c2dc04956 100644 --- a/content/kapacitor/v1.5/guides/live_leaderboard.md +++ b/content/kapacitor/v1.5/guides/live_leaderboard.md @@ -190,6 +190,7 @@ max Since we are writing data back to InfluxDB create a database `game` for our results. +{{< keep-url >}} ``` curl -G 'http://localhost:8086/query?' --data-urlencode 'q=CREATE DATABASE game' ``` @@ -277,6 +278,7 @@ Hit the endpoint several times to see that the scores are updating once a second Now, let's check InfluxDB to see our historical data. +{{< keep-url >}} ```bash curl \ -G 'http://localhost:8086/query?db=game' \ diff --git a/content/kapacitor/v1.5/introduction/getting-started.md b/content/kapacitor/v1.5/introduction/getting-started.md index f1868fab9..bc7b055e3 100644 --- a/content/kapacitor/v1.5/introduction/getting-started.md +++ b/content/kapacitor/v1.5/introduction/getting-started.md @@ -46,6 +46,7 @@ To get started, do the following: 2. In the Telegraf configuration file (`/etc/telegraf/telegraf.conf`), configure `[[outputs.influxd]]` to specify how to connect to InfluxDB and the destination database. + {{< keep-url >}} ```sh [[outputs.influxdb]] ## InfluxDB url is required and must be in the following form: http/udp "://" host [ ":" port] @@ -67,6 +68,7 @@ To get started, do the following: 4. After a minute, run the following command to use the InfluxDB API to query for the Telegraf data: + {{< keep-url >}} ```bash $ curl -G 'http://localhost:8086/query?db=telegraf' --data-urlencode 'q=SELECT mean(usage_idle) FROM cpu' ``` @@ -276,8 +278,9 @@ Complete the following steps to ensure log files and communication channels aren InfluxDB logs an error about `connection refused` if it cannot send data to Kapacitor. Run the query `SHOW SUBSCRIPTIONS` against InfluxDB to find the endpoint that InfluxDB is using to send data to Kapacitor. - In the following example, InfluxDB must be running on localhost:8086: + In the following example, InfluxDB must be running on `localhost:8086`: + {{< keep-url >}} ``` $ curl -G 'http://localhost:8086/query?db=telegraf' --data-urlencode 'q=SHOW SUBSCRIPTIONS' diff --git a/content/kapacitor/v1.5/introduction/install-docker.md b/content/kapacitor/v1.5/introduction/install-docker.md index 938b5ad0e..e5a7fa00a 100644 --- a/content/kapacitor/v1.5/introduction/install-docker.md +++ b/content/kapacitor/v1.5/introduction/install-docker.md @@ -126,6 +126,7 @@ At this point there should be running on the host machine: InfluxDB, Telegraf an The running configuration can be further inspected by using the `influx` command line client directly from the InfluxDB Container. +{{< keep-url >}} ``` $ docker exec -it tik_influxdb_1 influx --precision rfc3339 Connected to http://localhost:8086 version 1.3.3 diff --git a/content/kapacitor/v1.5/working/api.md b/content/kapacitor/v1.5/working/api.md index 78b7cf43e..3a344449f 100644 --- a/content/kapacitor/v1.5/working/api.md +++ b/content/kapacitor/v1.5/working/api.md @@ -1864,6 +1864,7 @@ Retrieve all the configuration sections which can be overridden. GET /kapacitor/v1/config ``` +{{< keep-url >}} ```json { "link" : {"rel": "self", "href": "/kapacitor/v1/config"}, @@ -1990,6 +1991,7 @@ Retrieve only the InfluxDB section. GET /kapacitor/v1/config/influxdb ``` +{{< keep-url >}} ```json { "link" : {"rel": "self", "href": "/kapacitor/v1/config/influxdb"}, diff --git a/content/telegraf/v1.10/administration/configuration.md b/content/telegraf/v1.10/administration/configuration.md index b21738497..c13bdacca 100644 --- a/content/telegraf/v1.10/administration/configuration.md +++ b/content/telegraf/v1.10/administration/configuration.md @@ -73,7 +73,7 @@ Each plugin will sleep for a random time within jitter before collecting. This can be used to avoid many plugins querying things like sysfs at the same time, which can have a measurable effect on the system. * **flush_interval**: Default data flushing interval for all outputs. -You should not set this below `interval`. +You should not set this below `interval`. Maximum `flush_interval` will be `flush_interval` + `flush_jitter` * **flush_jitter**: Jitter the flush interval by a random amount. This is primarily to avoid @@ -322,6 +322,7 @@ Additional inputs (or outputs) of the same type can be specified by defining the #### Output configuration examples: +{{< keep-url >}} ```toml [[outputs.influxdb]] urls = [ "http://localhost:8086" ] diff --git a/content/telegraf/v1.11/administration/configuration.md b/content/telegraf/v1.11/administration/configuration.md index b0edb4df7..bd46d240f 100644 --- a/content/telegraf/v1.11/administration/configuration.md +++ b/content/telegraf/v1.11/administration/configuration.md @@ -73,7 +73,7 @@ Each plugin will sleep for a random time within jitter before collecting. This can be used to avoid many plugins querying things like sysfs at the same time, which can have a measurable effect on the system. * **flush_interval**: Default data flushing interval for all outputs. -You should not set this below `interval`. +You should not set this below `interval`. Maximum `flush_interval` will be `flush_interval` + `flush_jitter` * **flush_jitter**: Jitter the flush interval by a random amount. This is primarily to avoid @@ -322,6 +322,7 @@ Additional inputs (or outputs) of the same type can be specified by defining the #### Output configuration examples: +{{< keep-url >}} ```toml [[outputs.influxdb]] urls = [ "http://localhost:8086" ] diff --git a/content/telegraf/v1.12/administration/configuration.md b/content/telegraf/v1.12/administration/configuration.md index de90faf06..dfb89e3e8 100644 --- a/content/telegraf/v1.12/administration/configuration.md +++ b/content/telegraf/v1.12/administration/configuration.md @@ -73,7 +73,7 @@ Each plugin will sleep for a random time within jitter before collecting. This can be used to avoid many plugins querying things like sysfs at the same time, which can have a measurable effect on the system. * **flush_interval**: Default data flushing interval for all outputs. -You should not set this below `interval`. +You should not set this below `interval`. Maximum `flush_interval` will be `flush_interval` + `flush_jitter` * **flush_jitter**: Jitter the flush interval by a random amount. This is primarily to avoid @@ -322,6 +322,7 @@ Additional inputs (or outputs) of the same type can be specified by defining the #### Output configuration examples: +{{< keep-url >}} ```toml [[outputs.influxdb]] urls = [ "http://localhost:8086" ] diff --git a/content/telegraf/v1.13/administration/configuration.md b/content/telegraf/v1.13/administration/configuration.md index 636aaa1f2..ef907d69a 100644 --- a/content/telegraf/v1.13/administration/configuration.md +++ b/content/telegraf/v1.13/administration/configuration.md @@ -41,7 +41,7 @@ configuration files. ## Set environment variables Add environment variables anywhere in the configuration file by prepending them with `$`. -For strings, variables must be in quotes (for example, `"$STR_VAR"`). +For strings, variables must be in quotes (for example, `"$STR_VAR"`). For numbers and Booleans, variables must be unquoted (for example, `$INT_VAR`, `$BOOL_VAR`). You can also set environment variables using the Linux `export` command: `export password=mypassword` @@ -52,6 +52,7 @@ You can also set environment variables using the Linux `export` command: `export In the Telegraf environment variables file (`/etc/default/telegraf`): +{{< keep-url >}} ```sh USER="alice" INFLUX_URL="http://localhost:8086" @@ -75,6 +76,7 @@ In the Telegraf configuration file (`/etc/telegraf.conf`): The environment variables above add the following configuration settings to Telegraf: +{{< keep-url >}} ```sh [global_tags] user = "alice" @@ -361,6 +363,7 @@ Additional inputs (or outputs) of the same type can be specified by defining the #### Output configuration examples: +{{< keep-url >}} ```toml [[outputs.influxdb]] urls = [ "http://localhost:8086" ] diff --git a/content/telegraf/v1.14/administration/configuration.md b/content/telegraf/v1.14/administration/configuration.md index 73843bbf2..139a3a147 100644 --- a/content/telegraf/v1.14/administration/configuration.md +++ b/content/telegraf/v1.14/administration/configuration.md @@ -42,7 +42,7 @@ configuration files. ## Set environment variables Add environment variables anywhere in the configuration file by prepending them with `$`. -For strings, variables must be in quotes (for example, `"$STR_VAR"`). +For strings, variables must be in quotes (for example, `"$STR_VAR"`). For numbers and Booleans, variables must be unquoted (for example, `$INT_VAR`, `$BOOL_VAR`). You can also set environment variables using the Linux `export` command: `export password=mypassword` @@ -53,6 +53,7 @@ You can also set environment variables using the Linux `export` command: `export In the Telegraf environment variables file (`/etc/default/telegraf`): +{{< keep-url >}} ```sh USER="alice" INFLUX_URL="http://localhost:8086" @@ -76,6 +77,7 @@ In the Telegraf configuration file (`/etc/telegraf.conf`): The environment variables above add the following configuration settings to Telegraf: +{{< keep-url >}} ```sh [global_tags] user = "alice" @@ -361,6 +363,7 @@ Additional inputs (or outputs) of the same type can be specified by defining the #### Output configuration examples: +{{< keep-url >}} ```toml [[outputs.influxdb]] urls = [ "http://localhost:8086" ] diff --git a/content/telegraf/v1.15/administration/configuration.md b/content/telegraf/v1.15/administration/configuration.md index e814dcdb4..522ddf433 100644 --- a/content/telegraf/v1.15/administration/configuration.md +++ b/content/telegraf/v1.15/administration/configuration.md @@ -53,6 +53,7 @@ You can also set environment variables using the Linux `export` command: `export In the Telegraf environment variables file (`/etc/default/telegraf`): +{{< keep-url >}} ```sh USER="alice" INFLUX_URL="http://localhost:8086" @@ -76,6 +77,7 @@ In the Telegraf configuration file (`/etc/telegraf.conf`): The environment variables above add the following configuration settings to Telegraf: +{{< keep-url >}} ```sh [global_tags] user = "alice" @@ -362,6 +364,7 @@ Additional inputs (or outputs) of the same type can be specified by defining the #### Output configuration examples: +{{< keep-url >}} ```toml [[outputs.influxdb]] urls = [ "http://localhost:8086" ] diff --git a/content/telegraf/v1.9/administration/configuration.md b/content/telegraf/v1.9/administration/configuration.md index ce3c6836c..8f72df62f 100644 --- a/content/telegraf/v1.9/administration/configuration.md +++ b/content/telegraf/v1.9/administration/configuration.md @@ -322,6 +322,7 @@ Additional inputs (or outputs) of the same type can be specified by defining the #### Output configuration examples: +{{< keep-url >}} ```toml [[outputs.influxdb]] urls = [ "http://localhost:8086" ] diff --git a/data/influxdb_urls.yml b/data/influxdb_urls.yml index c98acdd9c..c11331a1c 100644 --- a/data/influxdb_urls.yml +++ b/data/influxdb_urls.yml @@ -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 diff --git a/data/telegraf_plugins.yml b/data/telegraf_plugins.yml index f7dcb6075..1c07cf383 100644 --- a/data/telegraf_plugins.yml +++ b/data/telegraf_plugins.yml @@ -613,7 +613,7 @@ input: ```toml [[inputs.prometheus]] ## An array of urls to scrape metrics from. - urls = ["http://localhost:9999/metrics"] + urls = ["http://localhost:8086/metrics"] ``` introduced: 1.8.0 diff --git a/data/versions.yaml b/data/versions.yaml deleted file mode 100644 index 0c28bd5ba..000000000 --- a/data/versions.yaml +++ /dev/null @@ -1 +0,0 @@ -stable_version: v2.0 diff --git a/layouts/partials/footer/influxdb-url-modal.html b/layouts/partials/footer/influxdb-url-modal.html index e66466b5c..0b9c7532c 100644 --- a/layouts/partials/footer/influxdb-url-modal.html +++ b/layouts/partials/footer/influxdb-url-modal.html @@ -1,4 +1,4 @@ -{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) .RelPermalink | default "v2.0" }} +{{ $latestInfluxDBVersion := index (last 1 $.Site.Data.products.influxdb.versions) 0 }} diff --git a/layouts/shortcodes/cli/influxd-flags.md b/layouts/shortcodes/cli/influxd-flags.md index af210a1a9..9c52efb51 100644 --- a/layouts/shortcodes/cli/influxd-flags.md +++ b/layouts/shortcodes/cli/influxd-flags.md @@ -5,7 +5,7 @@ | | `--e2e-testing` | Add /debug/flush endpoint to clear stores; used for end-to-end tests (default `false`) | | `INFLUXD_E2E_TESTING` | | | `--engine-path` | Path to persistent engine files (default `~/.influxdbv2/engine`) | string | `INFLUXD_ENGINE_PATH` | | `-h` | `--help` | Help for the `influxd` command | | | -| | `--http-bind-address` | Bind address for the REST HTTP API (default `:9999`) | string | `INFLUXD_HTTP_BIND_ADDRESS` | +| | `--http-bind-address` | Bind address for the REST HTTP API (default `:8086`) | string | `INFLUXD_HTTP_BIND_ADDRESS` | | | `--log-level` | Supported log levels are debug, info, and error (default `info`) | string | `INFLUXD_LOG_LEVEL` | | | `--new-meta-store` | Enables the new meta store | | `INFLUXD_NEW_META_STORE` | | | `--new-meta-store-read-only` | Toggle read-only mode for the new meta store and duplicate reads between old and new store (default `true`) | | `INFLUXD_NEW_META_STORE_READ_ONLY` | diff --git a/static/downloads/air-sensor-data.rb b/static/downloads/air-sensor-data.rb index 70fd9136f..13fced823 100755 --- a/static/downloads/air-sensor-data.rb +++ b/static/downloads/air-sensor-data.rb @@ -8,7 +8,7 @@ require "uri" options = { protocol: "http", host: "localhost", - port: "9999", + port: "8086", interval: 5 } @@ -31,7 +31,7 @@ OptionParser.new do |opt| options[:host] = host end - opt.on("-p","--port port","Your InfluxDB port. Defaults to '9999'") do |port| + opt.on("-p","--port port","Your InfluxDB port. Defaults to '8086'") do |port| options[:port] = port end diff --git a/static/downloads/influxdb-k8-minikube.yaml b/static/downloads/influxdb-k8-minikube.yaml index 42f1c2698..91d51f601 100644 --- a/static/downloads/influxdb-k8-minikube.yaml +++ b/static/downloads/influxdb-k8-minikube.yaml @@ -26,7 +26,7 @@ spec: - image: quay.io/influxdb/influxdb:2.0.0-beta name: influxdb ports: - - containerPort: 9999 + - containerPort: 8086 name: influxdb volumeMounts: - mountPath: /root/.influxdbv2 @@ -50,8 +50,8 @@ metadata: spec: ports: - name: influxdb - port: 9999 - targetPort: 9999 + port: 8086 + targetPort: 8086 selector: app: influxdb type: ClusterIP