[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Peter Danko commented on JENKINS-49105 Re: Can't send data to influx I am able to send the data to influx nerveless i see this kind of error in Jenkins log: INFO: [InfluxDB Plugin] Publishing data to: [url="" description=influxDB, username=jenkins, password=*, database=jenkins] Apr 18, 2018 12:23:36 PM org.jenkinsci.plugins.structs.describable.DescribableModel uninstantiate2 WARNING: Cannot create control version of class jenkinsci.plugins.influxdb.InfluxDbPublisher using {target=[url="" description=influxDB, username=jenkins, password=*, database=jenkins]} java.lang.IllegalArgumentException: Could not instantiate {target=[url="" description=influxDB, username=jenkins, password=*, database=jenkins]} for InfluxDbPublisher(target: String, customData?: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type java.util.Map, customDataMap?: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type java.util.Map >, customPrefix?: String, customProjectName?: String): java.lang.ClassCastException: jenkinsci.plugins.influxdb.InfluxDbPublisher.target expects class java.lang.String but received class jenkinsci.plugins.influxdb.models.Target at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:286) at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate2(DescribableModel.java:572) at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate2_(DescribableModel.java:646) at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:196) at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:142) at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate2(DescribableModel.java:555) at org.jenkinsci.plugins.workflow.actions.ArgumentsAction.resolve(ArgumentsAction.java:308) at org.jenkinsci.plugins.workflow.actions.ArgumentsAction.getResolvedArguments(ArgumentsAction.java:295) at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.getDelegateType(StepAtomNode.java:134) at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.effectiveFunctionName(StepAtomNode.java:111) at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.getTypeFunctionName(StepAtomNode.java:123) at org.jenkinsci.plugins.workflow.graph.FlowNode.getDisplayFunctionName(FlowNode.java:261) at org.jenkinsci.plugins.workflow.job.WorkflowRun.logNodeMessage(WorkflowRun.java:1113) at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1000(WorkflowRun.java:142) at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1092) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1413) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:412) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Bruno Perel commented on JENKINS-49105 Re: Can't send data to influx Aleksi Simell Glad that I can help you debug the issue. Keep us posted Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Aleksi Simell commented on JENKINS-49105 Re: Can't send data to influx Bruno Perel I've been piled up with a lot of other stuff so I haven't had time to actually do anything about this. Your comment was the first to clarify these messages are shown in the Jenkins log, not in the build log, so highly probable I've been looking in the wrong place the whole time (if that's the case, then sorry Timo Sand for letting this hang for quite a while). Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Bruno Perel commented on JENKINS-49105 Re: Can't send data to influx Aleksi Simell Did you manage to reproduce this issue with the information that I provided? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Bruno Perel edited a comment on JENKINS-49105 Re: Can't send data to influx I'm having the same issue here : the Jenkins build info is sent to the Influx DB but not the specified custom data.Pipeline config : { {node \{ code:java } } node { { try \ { }} {{ stage('Build') \ { }} {{ ... }} \{\{ } }} {{ stage('Report') \ { }} {{ def myData = [:] }} {{ myData['customdata'] = '1' }} {{ step([$class: 'InfluxDbPublisher', customData: myData, customDataMap: null, customPrefix: 'prefix', target: 'Grafana']) }} \{\{ }}\{\{ } }} {{ } catch (Exception e) \ { }} {{ currentBuild.result = "FAILURE" }} {{ step([$class: 'InfluxDbPublisher', customData: null, customDataMap: null, customPrefix: null, target: 'Grafana']) }} \{\{ } } } { { code } }} In the build log, no complaint :{{[InfluxDB Plugin] Publishing data to: [url="" description=Grafana, username=myusername, password=*, database=mydatabase]}} {{[InfluxDB Plugin] Custom data found. Writing to InfluxDB...}} {{[InfluxDB Plugin] Completed.}}In the database, the custom data is missing : { { code:java} > select * from jenkins_custom_data where build_number=58; }} {{ name: jenkins_custom_data }} {{ time build_number build_time customdata prefix project_name project_name_1 }} {{ -- -- -- }} {{ 152110472252900 58 157485 prefix prefix_myproject prefix_myproject {code } } Jenkins logs are attached ([^influxdb_log.txt]), with similar "do not know how to categorize attributes" errors.Jenkins version : 2.89.4Plugin version : 1.14 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Bruno Perel edited a comment on JENKINS-49105 Re: Can't send data to influx I'm having the same issue here : the Jenkins build info is sent to the Influx DB but not the specified custom data.Pipeline config :{{node \{}} {{ try \{}} {{ stage('Build') \{}} {{ ...}} \ { \ { }}} {{ stage('Report') \{}} {{ def myData = [:]}} {{ myData['customdata'] = '1'}} {{ step([$class: 'InfluxDbPublisher', customData: myData, customDataMap: null, customPrefix: 'prefix', target: 'Grafana'])}} \ { \ { }} \ { \ { }}} {{ } catch (Exception e) \{}} {{ currentBuild.result = "FAILURE"}} {{ step([$class: 'InfluxDbPublisher', customData: null, customDataMap: null, customPrefix: null, target: 'Grafana'])}} \ { \ { }}} {{}}}In the build log, no complaint :{{[InfluxDB Plugin] Publishing data to: [url="" description=Grafana, username=myusername, password=*, database=mydatabase]}} {{[InfluxDB Plugin] Custom data found. Writing to InfluxDB...}} {{[InfluxDB Plugin] Completed.}}In the database, the custom data is missing :{{> select * from jenkins_custom_data where build_number=58;}} {{name: jenkins_custom_data}} {{time build_number build_time customdata prefix project_name project_name_1}} {{ -- -- -- }} \ { \ {152110472252900 58 157485 prefix prefix_myproject prefix_myproject }} Jenkins logs are attached ([^influxdb_log.txt]), with similar "do not know how to categorize attributes" errors.Jenkins version : 2.89.4Plugin version : 1.14 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Bruno Perel edited a comment on JENKINS-49105 Re: Can't send data to influx I'm having the same issue here : the Jenkins build info is sent to the Influx DB but not the specified custom data.Pipeline config :{{node \{}}{{ try \{}}{{ stage('Build') \{}}{{ ...}} {{ }}}{{ stage('Report') \{}}{{ def myData = [:]}}{{ myData['customdata'] = '1'}}{{ step([$class: 'InfluxDbPublisher', customData: myData, customDataMap: null, customPrefix: 'prefix', target: 'Grafana'])}} {{ }}{{ }}}{{ } catch (Exception e) \{}}{{ currentBuild.result = "FAILURE"}}{{ step([$class: 'InfluxDbPublisher', customData: null, customDataMap: null, customPrefix: null, target: 'Grafana'])}}{{ }}}{{}}}In the build log, no complaint :{{[InfluxDB Plugin] Publishing data to: [url="" description=Grafana, username=myusername, password=*, database=mydatabase]}}{{[InfluxDB Plugin] Custom data found. Writing to InfluxDB...}}{{[InfluxDB Plugin] Completed.}}In the database, the custom data is missing :{{> select * from jenkins_custom_data where build_number=58;}}{{name: jenkins_custom_data}}{{time build_number build_time customdata prefix project_name project_name_1}}{{ -- -- -- }} \ { \ {152110472252900 58 157485 prefix prefix_myproject prefix_myproject }} Jenkins logs are attached ([^influxdb_log.txt]), with similar "do not know how to categorize attributes" errors.Jenkins version : 2.89.4Plugin version : 1.14 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Bruno Perel commented on JENKINS-49105 Re: Can't send data to influx I'm having the same issue here : the Jenkins build info is sent to the Influx DB but not the specified custom data. Pipeline config : node { try { stage('Build') { ... {{ }}} stage('Report') { def myData = [:] myData['customdata'] = '1' step([$class: 'InfluxDbPublisher', customData: myData, customDataMap: null, customPrefix: 'prefix', target: 'Grafana']) {{ }}} } catch (Exception e) { currentBuild.result = "FAILURE" step([$class: 'InfluxDbPublisher', customData: null, customDataMap: null, customPrefix: null, target: 'Grafana']) {{ }}} } In the build log, no complaint : [InfluxDB Plugin] Publishing data to: [url="" description=Grafana, username=myusername, password=*, database=mydatabase] [InfluxDB Plugin] Custom data found. Writing to InfluxDB... [InfluxDB Plugin] Completed. In the database, the custom data is missing : > select * from jenkins_custom_data where build_number=58; name: jenkins_custom_data time build_number build_time customdata prefix project_name project_name_1 -- -- -- {{152110472252900 58 157485 prefix prefix_myproject prefix_myproject }} Jenkins logs are attached (influxdb_log.txt), with similar "do not know how to categorize attributes" errors. Jenkins version : 2.89.4 Plugin version : 1.14 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Bruno Perel updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Bruno Perel Attachment: influxdb_log.txt Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Aleksi Simell commented on JENKINS-49105 Re: Can't send data to influx Yes, I know that. But I still haven't been able to reproduce this issue. Do you first assign the target as a variable and pass it to the plugin step (I am aware you have the quotation marks around 'telegraf')? I'm just guessing here, since I have never encountered this before. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand commented on JENKINS-49105 Re: Can't send data to influx Aleksi Simell Yet that does not explain why the target object has been preparsed and thus passed in the wrong format to the constructor. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Aleksi Simell commented on JENKINS-49105 Re: Can't send data to influx Timo Sand Looking at your configuration the only things I can think of is that you have http://localhost:8186 instead of http://127.0.0.1:8186 as your url. I have tried to reproduce this with different Jenkins versions without success and if Kevin Phillips is experiencing the same with 2.60.2, then I don't believe this issue is Jenkins version dependant. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Aleksi Simell edited a comment on JENKINS-49105 Re: Can't send data to influx [~deiga] Looking at your configuration the only things thing I can think of is that you have [http://localhost:8186|http://localhost:8186/] instead of [http://127.0.0.1:8186|http://127.0.0.1:8186/] as your url.I have tried to reproduce this with different Jenkins versions without success and if [~leedega] is experiencing the same with 2.60.2, then I don't believe this issue is Jenkins version dependant. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand commented on JENKINS-49105 Re: Can't send data to influx Aleksi Simell I've added list of all enabled plugins and a screenshot of the Influxdbb config Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Timo Sand Attachment: Update_Center__Jenkins_.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Timo Sand Attachment: Update_Center__Jenkins_.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Timo Sand Attachment: Update_Center__Jenkins_.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Timo Sand Attachment: Update_Center__Jenkins_.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Timo Sand Attachment: Update_Center__Jenkins_.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Timo Sand Environment: Jenkins 2. 103 107 Plugin version 1. 13.1 14 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand updated an issue Jenkins / JENKINS-49105 Can't send data to influx Change By: Timo Sand Attachment: Configure_System__Jenkins_.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Aleksi Simell commented on JENKINS-49105 Re: Can't send data to influx Timo Sand Kevin Phillips, I can't reproduce this error with the code snippets you gave me. The error could be with your plugin/influxdb configuration. Can you double check your plugin configuration from Jenkins system config that there isn't anything funny there? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49105) Can't send data to influx
Title: Message Title Timo Sand commented on JENKINS-49105 Re: Can't send data to influx Aleksi Simell Any progress with this? Is there anything we can do to help? It would be really useful to get stats sent to grafana from Jenkins and without this we're unable to do that Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.