Troubleshoot Telegraf Controller installation
Telegraf Controller is in Private Alpha
Telegraf Controller is in private alpha. If you are interested in being a part of the private alpha program, please sign up:
While in alpha, Telegraf Controller is not meant for production use. The Telegraf Controller documentation is a work in progress, and we are actively working to improve it. If you have any questions or suggestions, please submit an issue. We welcome any and all contributions.
Resolve common installation and startup issues with Telegraf Controller. Check the symptoms below and apply the recommended fix before continuing with configuration.
- Port Already in Use
- Permission Denied (Linux/macOS)
- Database Connection Issues
- Firewall Configuration
- Security Considerations
Port already in use
If the default ports (8888 and 8000) are already in use, use the following configuration options to specify alternative ports:
| Description | Environment Variable | Command Flag |
|---|---|---|
| Web Interface and API | PORT | --port |
| Heartbeat server | HEARTBEAT_PORT | --heartbeat-port |
PORT=3000
HEARTBEAT_PORT=3001
telegraf_controller$env:PORT=3000
$env:HEARTBEAT_PORT=3001
./telegraf_controller.exetelegraf_controller --port=3000 --heartbeat-port=3001./telegraf_controller.exe --port=3000 --heartbeat-port=3001Permission denied (Linux/macOS)
If you do not have permission to run the telegraf_controller executable,
ensure the file has executable permissions:
chmod +x telegraf_controllermacOS: Remove the quarantine attribute
macOS places a quarantine attribute on executable files downloaded from a browser and restricts file execution. To remove the quarantine attribute, use Terminal or System Settings.
Remove the quarantine attribute in Terminal
xattr -d com.apple.quarantine telegraf_controllerRemove the quarantine attribute in System Settings
- Attempt to run the
telegraf_controllerexecutable. - In macOS, navigate to System Settings > Privacy & Security.
- Scroll to the bottom of the window.
- Next to the message about Telegraf Controller, click Allow.
Database connection issues
If there are database connection issues, check the following depending on which database you’re using:
SQLite
- Check file permissions for SQLite database directory
PostgreSQL
- Ensure PostgreSQL is running
- Check the format of and credentials in your data source name (DSN or database URL)
- Verify network connectivity
Firewall configuration
Ensure the following ports are open in your network Firewall configuration:
- Web Interface and API: TCP
8888(or custom port) - Heartbeat server: TCP
8000(or custom heartbeat port)
Security considerations
- SSL/TLS: Use
--ssl-certand--ssl-keyoptions for production deployments - Firewall: Restrict access to the web interface and heartbeat ports
- Database Security:
- PostgreSQL: Use strong passwords
- SQLite: Ensure the database file is protected with restricted permissions
(
chmod 600)
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Telegraf and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.