Closed sferencik closed 7 years ago
Have you tried nc
or netcat
to test the connectivity from the server to Graphite?
Example: http://graphite.readthedocs.io/en/latest/feeding-carbon.html
I think you can also try telnet
to see if it can connect
Unfortunately if the connectivity exists, the errors themselves say nothing so I can't say what's going wrong.
It seems this is coming from int-parsing a null
value here. Which in turn is because the plugin kicks in for any build that's finishing (any statisticValuePublished
event). It doesn't seem to check if the build feature is even enabled for the build config. So build configs where the plugin isn't added as a build feature have the port equal to null and its int-parsing throws.
I'm surprised that the feature is kicking off even for builds it's not enabled for, it's not something I had even considered, the assumption always being - the build feature's code will only be invoked if required... like a plugin. I'll have to do some testing for this when I find time.
I found your code checking to see if a feature is enabled:
so I'll follow some of that.
If you are impatient, you could do a PR for this as well, otherwise I'll have a look at this when I find some time
Yeah, I thought as much. A colleague is testing this, he should be able to confirm that this is indeed the case (having to verify the plugin is enabled). And I believe he'll have a PR too.
Many thanks @sferencik and @subhenduray I appreciate the time you put for this
@subhenduray, it seems to me there's an error in the new logic. Should line 84 here say return true
? Right now I see no metrics being sent at all.
Many thanks for reporting this @sferencik ; this is an overlook from my side. Committed a fix.
The teamcity-winservice.log file contains a lot of exception messages coming from the Graphite plugin. Example:
This seems like a problem with the plugin rather than the actual configuration.