Commit Graph

36 Commits (gw/data-https-insecure-certificate)

Author SHA1 Message Date
Jason Stirnaman 68f00e6805
fix(version-detector): centralize Grafana links and DRY up host examples (#6693)
* fix(version-detector): use centralized getGrafanaLink for all Grafana URLs

Refactor handleAuthorizationHelp to use getGrafanaLink() instead of
hardcoded URLs, ensuring all Grafana links come from a single source.

Also fix incorrect URLs in getGrafanaLink mapping:
- InfluxDB OSS 2.x: /visualize-data/ → /tools/
- InfluxDB Enterprise: /influxdb/enterprise/ → /enterprise_influxdb/v1/
- InfluxDB Cloud (TSM): /visualize-data/ → /tools/
- InfluxDB Cloud v1: now links to Enterprise v1 docs (Cloud v1 is
  Enterprise under the hood)

* refactor(version-detector): DRY up localhost:8086 references

Extract HOST_EXAMPLES to a class-level constant and add DEFAULT_HOST
and DEFAULT_HOST_PORT constants to eliminate duplicate localhost:8086
strings throughout the code.

- Move hostExamples from local variable to class constant
- Use DEFAULT_HOST for URL placeholder and comparison checks
- Use DEFAULT_HOST_PORT for docker curl command examples

* feat(ask-ai): Support source group IDs in Ask AI trigger links

* feat(version-detector): Present context-aware links

- Add ai_source_group_ids fields to ProductConfig interface
- Improve SCSS for doc and Ask AI links
- Update Grafana docs to add aliases and context param for detector
- Update modal partial to include AI source group IDs in config
- Remove custom Cypress commands for version detector
- Update E2E tests to use direct Cypress commands
2026-01-26 18:42:09 -06:00
Jason Stirnaman b8418d9788
fix(shortcodes): latest-patch CLI version for cloud-serverless (#6655)
* fix(shortcodes): latest-patch CLI version for cloud-serverless

Add cloud-serverless to the condition that handles cloud products,
and use influxdb.latest directly for CLI version lookups.

Root cause: The shortcode only checked for "cloud" version when
deciding to use the influxdb CLI version. Cloud Serverless pages
have $product="influxdb3" which doesn't exist in products.yml,
causing $latestVersion to be empty.

Fix: Calculate $influxdbLatest directly from products.influxdb.latest
within the CLI block, ensuring cloud products always use the correct
lookup key (v2) for the influx CLI version.

Includes Cypress test covering v2, Cloud, and Cloud Serverless.

Closes #6646

* Restore latest-patch shortcode for cloud-serverless. Revert "hotfix: influxdb (v2) CLI version (#6644)"

This reverts commit 5f792bd47a.

* chore(link-checker): update configs for v1.3.0 severity classification (#6688)

Remove exclusions for sites that return 403/429 (bot protection) and
5xx (server errors) - these are now handled by severity classification:
- 403/401/429 → info (shown but don't fail CI)
- 5xx/timeout → warning (shown but don't fail CI)
- 404/410/DNS → error (fail CI)

Removed exclusions:
- GitHub, Slack, Reddit, StackOverflow
- Docker Hub, Grafana, Microsoft Learn
- Claude.ai, Dremio, Scarf, InfluxData support

Kept exclusions:
- Localhost/local network URLs
- Example/placeholder URLs
- CI-specific workarounds (canonical URLs, file fragments)

Added [severity] configuration section with default thresholds.
2026-01-02 12:47:12 -06:00
Jason Stirnaman 5f792bd47a
hotfix: influxdb (v2) CLI version (#6644)
- latest-patch shortcode doesn't work in cloud-serverless code samples
- reverted to hardcoded CLI version in shared file and Serverless-specific file
2025-12-17 15:13:02 -07:00
Jason Stirnaman f084fe3a31
Ask AI group filters (#6529)
* feat(askai): add Kapa.ai source group filtering for InfluxDB v3

- Add ai_source_group_ids field to all InfluxDB v3 products in data/products.yml
- Add getProductSourceGroupIds() function to retrieve source group IDs from product data
- Enables filtered AI responses using Kapa source groups for documentation pages
- Follows existing pattern for dynamic product configuration
- Implement version-specific config support (__v1, __v2 suffixes)
- Append version hints to example questions for InfluxDB database products only
- Make example questions generic (remove product-specific names)
- Tools (Telegraf, Chronograf, Kapacitor, Flux, Explorer) display questions without version hints
- Pre-fills chat input with [version: /path/] for InfluxDB database products
- Users can easily edit or remove the pre-filled text
- Works for manual opens (Cmd+K) and programmatic opens
- Converts module to TypeScript

* refactor(ask-ai): change version format to 'My version: <product name>'

Use human-readable product names instead of URL paths for better UX.
Example: 'My version: InfluxDB 3 Core' instead of '[version: /influxdb3/core/]'

* fix(ask-ai): restore working Kapa.open() pre-fill implementation

- Replace textarea detection with direct Kapa.open() call
- Add Kapa preinitialization code
- Use click handler on .ask-ai-open button with capture phase
- Handle conversation reset event to re-fill version context
- Remove console logging for cleaner production code

* fix(ask-ai): remove parentheses from example questions for consistency

Make example question format match the pre-fill format:
- Before: 'question (My version: product)'
- After: 'question My version: product'

This ensures users don't think there's a difference between the two formats.

* fix(askai): add Explorer product mapping for Ask AI widget

- Add influxdb3_explorer mapping to getCurrentProductData()
- Add explorer context to getContext() function
- Ensures Explorer pages use correct ai_sample_questions from products.yml
- Reorder Explorer questions with 'install and run' first

This fixes the issue where Explorer Ask AI widget was showing wrong
example questions by properly loading the influxdb3_explorer config.

* test(page-context): add comprehensive e2e tests for product mappings

Add Cypress tests to validate page-context.js correctly identifies:
- Product context values for all InfluxDB products
- Product data from products.yml configuration
- Version information
- AI sample questions and source group IDs
- Placeholder host values

Tests cover:
- InfluxDB 3 (Core, Enterprise, Explorer, Cloud variants, Clustered)
- InfluxDB v2 and v1
- InfluxDB Cloud (TSM)
- Tools (Telegraf, Chronograf, Kapacitor, Flux)

Validates the fix for Explorer Ask AI showing correct example questions.

Related to #jts-askai-group-filters branch work.

* feat(test): add --no-mapping flag to e2e test runner

Allow running functionality tests without requiring content file paths.
The --no-mapping flag skips content-to-URL mapping, making it easier
to run tests that don't depend on specific content files.

Usage:
  # With content mapping (for content-specific tests)
  node run-e2e-specs.js content/influxdb3/core/_index.md

  # Without content mapping (for functionality tests)
  node run-e2e-specs.js --spec cypress/e2e/page-context.cy.js --no-mapping

Benefits:
- Simplifies running functionality tests like page-context.cy.js
- Reduces test startup time by skipping unnecessary file mapping
- Makes test commands clearer about their purpose

The page-context test was updated to work correctly with this flag.

* deps: update caniuse and related hook files

* test: Add a `--no-mapping` flag to run tests without specific content files (i.e., test contains all the URLs it needs)

* chore(ask-ai): Format example questions

* test(page-context): add comprehensive e2e tests for all products in products.yml

- Expanded test suite from 6 to 27 tests covering all products
- Added tests for InfluxDB 3 products (Explorer, Core, Enterprise, Cloud Serverless, Cloud Dedicated, Clustered)
- Added tests for InfluxDB v2 and Cloud (TSM)
- Added tests for InfluxDB v1 and Enterprise v1
- Added tests for other products (Telegraf, Chronograf, Kapacitor, Flux)
- Validates page mappings in page-context.js
- Validates AI sample questions configuration in products.yml
- All 27 tests passing

* fix(page-context): correct enterprise_influxdb URL pattern matching

- Changed pattern from /enterprise_v1/ to /enterprise_influxdb/
- Fixes Ask AI example questions not showing correctly for Enterprise v1
- Pattern now matches actual URL structure /enterprise_influxdb/v1/
- All 27 e2e tests passing

* test(page-context): add UI validation for Ask AI widget configuration

- Added 4 tests checking Kapa widget script data attributes
- Tests verify data-modal-example-questions contains correct product-specific questions
- Validates Explorer, Core, Enterprise, and Enterprise v1 configurations
- All 31 tests passing (27 existing + 4 new UI tests)

* feat(ask-ai): add help in Ask AI widget placeholder

- InfluxDB placeholder recommends specifying product and version
- Fix page-context.js to use products.influxdb_cloud instead of products.cloud
- Add UI tests verifying version-specific naming in Kapa widget script tags

* feat(ask-ai): Tailors placeholder for each version/product. Disables "Viewing <product>" in disclaimer note.
2025-11-18 16:43:02 -06:00
Scott Anderson 08f498a7e8 fix(grafana): fix bad anchor links 2025-10-10 08:46:39 -06:00
Scott Anderson 85d669048c chore(grafana): update grafana screenshots, remove unused images 2025-10-10 08:33:48 -06:00
Jason Stirnaman a6f3958a20 docs(grafana): integrate feature flag setup into installation workflow
- Move feature flag configuration from Advanced section into Step 3 of installation
- Update terminology from "Grafana OSS" to "running Grafana locally" to include both OSS and Enterprise
- Consolidate "Using Grafana Cloud with local InfluxDB" guidance into single note with direct link
- Remove redundant Advanced configuration section

Changes apply to all Grafana documentation pages:
- InfluxDB 3 products (Core, Enterprise, Cloud Serverless, Cloud Dedicated, Clustered)
- InfluxDB v2 and Cloud TSM
- InfluxDB v1 OSS and Enterprise

The feature flag requirement is now integrated directly into the installation workflow,
making it more discoverable for users setting up Grafana locally.
2025-10-07 13:30:20 -05:00
Jason Stirnaman 3443bfab20 fix(grafana): update heading structure and fix broken link fragments
- Combine separate 'Query' and 'Build visualizations' sections into unified 'Query and visualize data' section
- Convert h2 headings to h3 under new parent section
- Update TOC to reflect new heading hierarchy
- Ensure all fragment links work correctly
2025-10-06 19:51:29 -05:00
Jason Stirnaman 87a5662833 fix(grafana): update Grafana documentation across all InfluxDB versions 2025-10-06 18:54:04 -05:00
Jason Stirnaman 6a90067fb8 docs(grafana): add Grafana Cloud private data source guidance
Add note to all Grafana integration pages about using Grafana Cloud
with local InfluxDB instances. The note recommends running Grafana
locally to avoid exposing databases to the internet, and provides
information about configuring Grafana Cloud private data sources
as an alternative.

Updated files:
- content/shared/v3-process-data/visualize/grafana.md
- content/shared/influxdb-v2/tools/grafana.md
- content/influxdb/v1/tools/grafana.md
- content/enterprise_influxdb/v1/tools/grafana.md
2025-10-06 16:19:43 -05:00
Jason Stirnaman 1b3a284432 docs(grafana): add version detector and complete alt_links
- Add InfluxDB version detector shortcode to all Grafana pages
- Add comprehensive alt_links to v2 and Cloud Grafana pages
- Include links to all InfluxDB versions (v1, enterprise_v1, v2, cloud, and all v3 products)
- Improve cross-product navigation for Grafana documentation
2025-10-06 15:19:57 -05:00
Jason Stirnaman 3095f7992d docs(grafana): update Grafana integration docs across all products
- Add Quick reference tables to all Grafana documentation
- Consolidate shared content for InfluxDB v3 products
- Update configuration steps and screenshots
- Remove duplicate grafana.md from shared/influxdb3-visualize
- Delete outdated product-specific Grafana screenshots
- Add new consolidated screenshot for InfluxDB v2 Cloud Flux config
- Standardize authentication and URL configuration guidance
- Improve consistency across v1, v2, and v3 product documentation
2025-10-06 14:51:17 -05:00
Jason Stirnaman 8efbd44a2d docs(influxdb3): use shared Grafana docs for all v3 products, fix product and token naming
- Update Core and Enterprise to use shared v3-process-data/visualize/grafana.md
- Fix product name references to use proper {{% product-name %}} shortcode
- Correct token terminology (admin token, database token) across products
- Add HTTP/2 requirement note for SQL queries through Grafana (uses Flight SQL/gRPC)
- Update Flight client library reference to clarify gRPC and Arrow Flight
- Reorganize Grafana screenshot files to use /influxdb/ directory
- Add Cloud Serverless InfluxQL screenshot
2025-10-04 17:36:04 -05:00
meelahme 9b95d80d6d updated to headers and TOC 2025-10-03 13:28:39 -07:00
meelahme 0685c02bd1 docs(WIP): structure and content update to v2 OSS 2025-10-03 13:04:32 -07:00
meelahme 0707a20100 docs: updates to structure and format to OSS v2 2025-10-02 15:52:11 -07:00
meelahme a812f964e0 docs(WIP): restructuring section seperation 2025-10-02 12:26:56 -07:00
meelahme 2cae2ddbab docs: update to OSS v2 inroduction and flux section 2025-10-02 12:09:30 -07:00
meelahme b9c3a7979c docs: updating install granafa section for OSS v2 2025-10-02 11:31:48 -07:00
Jason Stirnaman 0001c1cfc4 fix(v2): missing (API) in heading 2025-08-18 18:22:53 -05:00
Jason Stirnaman a21c06bb4f fix(v2): OSS replication:- Fix (simplify) list formatting; remove nested lists.- Convert numbered list to numbered headers to replace nested lists- Add additional headers to show alternatives- Specify Enterprise v1- Update callouts 2025-08-18 15:16:38 -05:00
Jason Stirnaman f5df3cb6f0 fix(v2): broken link 2025-08-18 10:28:09 -05:00
Jason Stirnaman 98735f4bef test link-checker, positive test 2025-08-18 10:21:10 -05:00
Jason Stirnaman 0546d66ac0 ci: link-checker known positive test with existing broken link, platform-specific instructions 2025-08-17 09:53:10 -05:00
Jason Stirnaman 1c193d8fb0 Update content/shared/influxdb-v2/query-data/execute-queries/influx-api.md 2025-07-07 15:03:23 -05:00
Jason Stirnaman d6e5ecfe85 Update content/shared/influxdb-v2/query-data/execute-queries/influx-api.md 2025-07-07 15:03:23 -05:00
Jason Stirnaman a41bd840e2 Fix hosts, cleanup retention policy 2025-07-07 15:03:23 -05:00
Jason Stirnaman b4ab7900e1 Fix hosts, cleanup retention policy 2025-07-07 15:03:23 -05:00
Jason Stirnaman c738dfd82f chore(v2): OSS v2 query API: add, fix, cleanup:
- Adds missing examples for v1-compatible /query
- Fixes curl params in examples
- Removes unsupported async option from examples
- Updates terms for consistency with branding and influxdb3 docs
- Copies the missing POST /query operation from swaggerv1compat to the v2 ref.yml
- Effectively removes the separate v1-compat spec, and adds redirects and tags for v1-compat endpoints in v2/ref.yml
- Updates affected links
2025-07-07 14:09:47 -05:00
Jason Stirnaman 0616c63a5c fix(v2): "version" links that should be specific to OSS v2 2025-07-03 14:54:32 -05:00
Jason Stirnaman f7a538d2d1 chore(v2): Explain v1-compatible auth and add a troubleshooting section with a negative example. Putting a bow on #4393. Verified that Kapa.ai knows how to authenticate to v1 endpoints in each version 2025-07-03 14:27:04 -05:00
Jason Stirnaman e6d2e00b83
Update content/shared/influxdb-v2/write-data/troubleshoot.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-22 16:55:23 -05:00
Jason Stirnaman 8d0d4acf55 fix(oss2): Troubleshoot partial writes for v2 and Cloud
- OSS v2 supports partial writes and returns a 422 that describes rejected points, depending on the problem.
- Update API spec
- Move file to content/shared for Cloud
2025-05-22 16:30:41 -05:00
Jason Stirnaman 38f53620dd chore(vsflux): Remove Flux VSCode pages, add notice that vsflux is removed from Marketplace extensions, and vsflux and flux-lsp are archived
Closes #5990. Fix broken links.
2025-04-17 13:58:33 -05:00
Scott Anderson 15bcfc95c3 hotfix: fix links in shared v2 content 2025-04-02 19:56:32 -06:00
Scott Anderson 1522e734b9
Update shared content usage in v2 docs and more (#5953)
* replaced all oss- and cloud-only shortcodes

* removed duplicate oss calls and replaced with shared source

* base changes for shared v2 content

* restored shared grafana content

* removed frontmatter from shared v2 content

* WIP fixing lists with show-in shortcode

* fix lists that use show-in shortcode

* updated all v2 files to remove duplicate-oss and use source sharing

* update prepend and append frontmatter to just use string input

* fixed broken menu keys
2025-04-02 15:54:32 -06:00