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

Telegraf: report 'iotstack' as hostname to influx #573

Merged
merged 1 commit into from
Sep 11, 2022

Conversation

ukkopahis
Copy link

@ukkopahis ukkopahis commented Jun 15, 2022

If no hostname is set, telegraf will generate a new random one each time it is recreated. It's more beginner and user-friendly to have a persistent non-changing hostname.

The hostname is used for tagging data sent to influxdb. If you have multiple stacks sending measurements to the same influx, this should be changed on at least one of the stacks. But that's expert usage, and not nearly as relevant as the single-stack case. Having many lots of different tagged hostnames may also reduce performance.

Note: this commit was previously part of #554, but now split into a separate PR, as no-one shouldn't object to this being merged. (as opposed to the dependency-removal)

@ukkopahis ukkopahis changed the title Telegraf: don't send random generated hostname to influx Telegraf: report 'iotstack' as hostname to influx Jun 24, 2022
@@ -1,6 +1,7 @@
telegraf:
container_name: telegraf
build: ./.templates/telegraf/.
hostname: iotstack # optional
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe iotstack-telegraf?

@Slyke Slyke merged commit 759aad4 into SensorsIot:master Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants