influxdata / influxdata/influx-cli

Feature Request: Support specifying path prefix for InfluxDB URL

Open
#452 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

I'm opening a feature request for feature that was already done on 1.8: https://github.com/influxdata/influxdb/issues/10294
It was done by @bthesorceror on https://github.com/influxdata/influxdb/pull/16599.

The idea is to allow specifying a sub-path on the URL, so the client could work when an HTTP reverse proxy is routing the requests based on the path. For example, using a URL: https://example.com/influxdb/.

Apparently, this support was removed on version 2, as the flags no longer exists.

Is it possible to support this?

Thanks,
Yehoshua

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the requested behavior with InfluxDB issue 10294 and pull request 16599, then trace how influx-cli currently parses its InfluxDB URL and handles the removed flags. Done means defining and implementing support for a URL sub-path such as https://example.com/influxdb/ without breaking normal URLs, with behavior verified against the referenced prior implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.