Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .ci/vale/styles/InfluxDBv2/ServerConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: spelling
message: "Did you really mean '%s'?"
level: warning
ignore:
# Ignore the following words. All words are case-insensitive.
# To use case-sensitive matching, use the filters section or vocabulary Terms.
- InfluxDBv2/Terms/query-functions.txt
- InfluxDBv2/Terms/server-config-options.txt
filters:
- '(\[|`)ui-disabled(`|\])'
76 changes: 76 additions & 0 deletions .ci/vale/styles/InfluxDBv2/Terms/query-functions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@


# InfluxQL
# is_scalar_math_function
# Source: https://github.com/influxdata/influxdb_iox/blob/4f9c901dcfece5fcc4d17cfecb6ec45a0dccda5a/influxdb_influxql_parser/src/functions.rs
abs
sin
cos
tan
asin
acos
acosh
asinh
atan
atanh
atan2
cbrt
exp
gcd
isnan
iszero
lcm
log
ln
log2
log10
nanvl
sqrt
pow
floor
ceil
round

# InfluxQL operators
bitfield

# is_aggregate_function
# Source: https://github.com/influxdata/influxdb_iox/blob/4f9c901dcfece5fcc4d17cfecb6ec45a0dccda5a/influxdb_influxql_parser/src/functions.rs
approx_distinct
approx_median
approx_percentile_cont
approx_percentile_cont_with_weight
covar
cumulative_sum
derivative
difference
elapsed
moving_average
non_negative_derivative
non_negative_difference
bottom
first
last
max
min
percentile
sample
top
count
integral
mean
median
mode
spread
stddev
sum
holt_winters
holt_winters_with_fit
chande_momentum_oscillator
exponential_moving_average
double_exponential_moving_average
kaufmans_efficiency_ratio
kaufmans_adaptive_moving_average
triple_exponential_moving_average
triple_exponential_derivative
relative_strength_index
70 changes: 70 additions & 0 deletions .ci/vale/styles/InfluxDBv2/Terms/server-config-options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
assets-path
bolt-path
e2e-testing
engine-path
feature-flags
flux-log-enabled
hardening-enabled
http-bind-address
http-idle-timeout
http-read-header-timeout
http-read-timeout
http-write-timeout
influxql-max-select-buckets
influxql-max-select-point
influxql-max-select-series
instance-id
log-level
metrics-disabled
nats-max-payload-bytes
nats-port
no-tasks
pprof-disabled
query-concurrency
query-initial-memory-bytes
query-max-memory-bytes
query-memory-bytes
query-queue-size
reporting-disabled
secret-store
session-length
session-renew-disabled
sqlite-path
storage-cache-max-memory-size
storage-cache-snapshot-memory-size
storage-cache-snapshot-write-cold-duration
storage-compact-full-write-cold-duration
storage-compact-throughput-burst
storage-max-concurrent-compactions
storage-max-index-log-file-size
storage-no-validate-field-size
storage-retention-check-interval
storage-series-file-max-concurrent-snapshot-compactions
storage-series-id-set-cache-size
storage-shard-precreator-advance-period
storage-shard-precreator-check-interval
storage-tsm-use-madv-willneed
storage-validate-keys
storage-wal-fsync-delay
storage-wal-max-concurrent-writes
storage-wal-max-write-delay
storage-write-timeout
store
strong-passwords
testing-always-allow-setup
tls-cert
tls-key
tls-min-version
tls-strict-ciphers
tracing-type
ui-disabled
vault-addr
vault-cacert
vault-capath
vault-client-cert
vault-client-key
vault-client-timeout
vault-max-retries
vault-skip-verify
vault-tls-server-name
vault-token
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SQLAlchemy
Splunk
[Ss]uperset
TBs?
UI
\bUI\b
URL
US (East|West|Central|North|South|Northeast|Northwest|Southeast|Southwest)
Unix
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile.pytest
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
curl \
git \
gpg \
influxdb2 \
influxdb2-cli \
influxctl \
jq \
Expand All @@ -41,6 +42,9 @@ ENV PYTHONUNBUFFERED=1

WORKDIR /app

RUN mkdir -p /app/log && chmod +w /app/log
RUN mkdir -p /app/assets && chmod +w /app/assets

# Some Python test dependencies (pytest-dotenv and pytest-codeblocks) aren't
# available as packages in apt-cache, so use pip to download dependencies in a # separate step and use Docker's caching.
# Pytest configuration file.
Expand All @@ -62,6 +66,8 @@ RUN echo '#!/bin/bash' > /usr/local/bin/xdg-open \
&& echo 'echo "$1" > /shared/urls.txt' >> /usr/local/bin/xdg-open \
&& chmod +x /usr/local/bin/xdg-open

RUN service influxdb start

# Copy test scripts and make them executable.
COPY --chmod=755 ./test/scripts/parse_yaml.sh /usr/local/bin/parse_yaml

Expand Down
17 changes: 17 additions & 0 deletions content/influxdb/v2/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
StylesPath = "../../../.ci/vale/styles"

Vocab = InfluxDataDocs

MinAlertLevel = warning

Packages = Google, write-good, Hugo

[*.md]
BasedOnStyles = Vale, InfluxDBv2, InfluxDataDocs, Google, write-good

Google.Acronyms = NO
Google.DateFormat = NO
Google.Ellipses = NO
Google.Headings = NO
Google.WordList = NO
Vale.Spelling = NO
Loading