Skip to content

Commit

Permalink
fix(ui): correct the default port used in UI examples (influxdata#20809)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjincheng121 authored Mar 2, 2021
1 parent 9bda089 commit 12b1dc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
1. [20797](https://github.com/influxdata/influxdb/pull/20797): Fix data race in TSM cache. Thanks @StoneYunZhao!
1. [20798](https://github.com/influxdata/influxdb/pull/20798): Deprecate misleading `retentionPeriodHrs` key in onboarding API.
1. [20819](https://github.com/influxdata/influxdb/pull/20819): Fix Single Stat graphs with thresholds crashing on negative values.
1. [20809](https://github.com/influxdata/influxdb/pull/20809): Fix InfluxDB port in Flux function UI examples. Thanks @sunjincheng121!

## v2.0.4 [2021-02-08]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Once setup is complete, a configuration profile is created to allow you to inter
```bash
$ bin/$(uname -s | tr '[:upper:]' '[:lower:]')/influx config
Active Name URL Org
* default http://localhost:9999 InfluxData
* default http://localhost:8086 InfluxData
```

## Writing Data
Expand Down
4 changes: 2 additions & 2 deletions ui/src/shared/constants/fluxFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
desc:
'Submits an HTTP POST request to the specified URL with headers and data and returns the HTTP status code.',
example:
'http.post(url: "http://localhost:9999/", headers: {x:"a", y:"b"}, data: bytes(v: "body"))',
'http.post(url: "http://localhost:8086/", headers: {x:"a", y:"b"}, data: bytes(v: "body"))',
category: 'Transformations',
link:
'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/http/post/',
Expand Down Expand Up @@ -3804,7 +3804,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
],
package: 'experimental/prometheus',
desc: 'Retrieves Prometheus-formatted metrics from a specified URL.',
example: 'prometheus.scrape(url: "http://localhost:9999/metrics")',
example: 'prometheus.scrape(url: "http://localhost:8086/metrics")',
category: 'Inputs',
link:
'https://docs.influxdata.com/influxdb/latest/reference/flux/stdlib/experimental/prometheus/scrape/',
Expand Down

0 comments on commit 12b1dc6

Please sign in to comment.