TrueNAS SCALE reporting to graphite: change port

Herman Eggink

Explorer
Joined
Jan 27, 2014
Messages
73
Any way I can change the port number for the graphite reporting? When I migrated from CORE to SCALE (which was a breeze :smile:), I switched from plugin to docker. Docker does not allow ports under 9000 so I cannot use default port 2003. There is no option to change the port unfortunately...
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You could try taking the cue from the syslog server setting:
1652102751893.png
 

Herman Eggink

Explorer
Joined
Jan 27, 2014
Messages
73
Guess what: I tried but it just takes that entire string as the hostname and still tries to open port 2003 :-( :smile:.
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
you could also try to map the hostport 2003 to a random container port >9000, e.g. 9003
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You could use the TrueCharts app for Traefik and set up the desired port there or use a custom service app to point at it.
 

Herman Eggink

Explorer
Joined
Jan 27, 2014
Messages
73
You could use the TrueCharts app for Traefik and set up the desired port there or use a custom service app to point at it.
Could you provide me with more insight as to how I could achieve that? In some shape or form, I would need to redirect the 2003 traffic into the docker container. Something would need to listen on 2003 and I don't see how I can select that port anywhere since pirts can only start from 9000.
 

Herman Eggink

Explorer
Joined
Jan 27, 2014
Messages
73
you could also try to map the hostport 2003 to a random container port >9000, e.g. 9003
How would that work? The container runs influx, grafana and a couple of other components all needing some mapping of ports.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Could you provide me with more insight as to how I could achieve that? In some shape or form, I would need to redirect the 2003 traffic into the docker container. Something would need to listen on 2003 and I don't see how I can select that port anywhere since pirts can only start from 9000.
Where is the docker container running? on the same host?
 

Herman Eggink

Explorer
Joined
Jan 27, 2014
Messages
73
Where is the docker container running? on the same host?
Yes. On trueNAS SCALE in the apps section, I spun up a docker image using the philhawthorne/docker-influxdb-grafana image which works quite nice.
 
Top