Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basepath not used for generated telegraf url #20945

Open
mapero opened this issue Mar 15, 2021 · 2 comments
Open

Basepath not used for generated telegraf url #20945

mapero opened this issue Mar 15, 2021 · 2 comments
Labels
area/data ingestion Issues related to any type of data ingestion/acquisition area/2.x OSS 2.0 related issues and PRs kind/bug

Comments

@mapero
Copy link

mapero commented Mar 15, 2021

Steps to reproduce:

  1. Compile influxdb with custom basepath "/influxdb"
  2. Set reverse proxy configuration accordingly so that the application is running under https://10.52.126.234/influxdb
  3. Use "Load Data" -> "Telegraf" -> "Create Configuration"
  4. Select "Bucket" and "System", and give it a name
  5. Urls generated for telegraf are not respecting basepath

Expected behavior:

I expect, that the generated urls to download the configuration and the url field in configuration respect the "basepath" parameter.
e.g.

telegraf --config https://10.52.126.234/influxdb/api/v2/telegrafs/1234567878
[[outputs.influxdb_v2]]
urls = ["https://10.52.126.234/influxdb"]

Actual behavior:

Generated urls ignore basepath configuration

telegraf --config https://10.52.126.234/api/v2/telegrafs/1234567878
[[outputs.influxdb_v2]]
urls = ["https://10.52.126.234"]

Environment info:

  • System info: Run uname -srm and copy the output here
    Linux 4.15.0-124-generic x86_64
  • InfluxDB version: Run influxd version and copy the output here
    InfluxDB v2.0.4 (git: 4e7a59b) build_date: 2021-03-15T07:37:28Z
  • Other relevant environment details: Container runtime, disk info, etc
    Running as snap

Config:
Copy any non-default config values here or attach the full config as a gist or file.

@danxmoran danxmoran added area/2.x OSS 2.0 related issues and PRs area/data ingestion Issues related to any type of data ingestion/acquisition kind/bug labels Mar 15, 2021
@russorat
Copy link
Contributor

connect #15721

@alv000h
Copy link

alv000h commented Feb 2, 2024

and this one #21009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/data ingestion Issues related to any type of data ingestion/acquisition area/2.x OSS 2.0 related issues and PRs kind/bug
Projects
None yet
Development

No branches or pull requests

4 participants