{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/3977","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/3977/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/3977/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/3977/events","html_url":"https://github.com/influxdata/telegraf/issues/3977","id":311786436,"number":3977,"title":"Some metrics disapears after upgrade to 1.6.x and above using Prometheus Ouput Plugin","user":{"login":"allangood","id":757086,"avatar_url":"https://avatars1.githubusercontent.com/u/757086?v=4","gravatar_id":"","url":"https://api.github.com/users/allangood","html_url":"https://github.com/allangood","followers_url":"https://api.github.com/users/allangood/followers","following_url":"https://api.github.com/users/allangood/following{/other_user}","gists_url":"https://api.github.com/users/allangood/gists{/gist_id}","starred_url":"https://api.github.com/users/allangood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allangood/subscriptions","organizations_url":"https://api.github.com/users/allangood/orgs","repos_url":"https://api.github.com/users/allangood/repos","events_url":"https://api.github.com/users/allangood/events{/privacy}","received_events_url":"https://api.github.com/users/allangood/received_events","type":"User","site_admin":false},"labels":[{"id":194687826,"url":"https://api.github.com/repos/influxdata/telegraf/labels/bug","name":"bug","color":"ff8564","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/influxdata/telegraf/milestones/22","html_url":"https://github.com/influxdata/telegraf/milestone/22","labels_url":"https://api.github.com/repos/influxdata/telegraf/milestones/22/labels","id":2929613,"number":22,"title":"1.6.0","description":"","creator":{"login":"danielnelson","id":1048079,"avatar_url":"https://avatars3.githubusercontent.com/u/1048079?v=4","gravatar_id":"","url":"https://api.github.com/users/danielnelson","html_url":"https://github.com/danielnelson","followers_url":"https://api.github.com/users/danielnelson/followers","following_url":"https://api.github.com/users/danielnelson/following{/other_user}","gists_url":"https://api.github.com/users/danielnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/danielnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielnelson/subscriptions","organizations_url":"https://api.github.com/users/danielnelson/orgs","repos_url":"https://api.github.com/users/danielnelson/repos","events_url":"https://api.github.com/users/danielnelson/events{/privacy}","received_events_url":"https://api.github.com/users/danielnelson/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":144,"state":"open","created_at":"2017-11-21T21:57:39Z","updated_at":"2018-04-05T23:40:49Z","due_on":"2018-04-06T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-04-05T22:09:47Z","updated_at":"2018-04-06T14:31:52Z","closed_at":"2018-04-05T23:38:42Z","author_association":"NONE","body":"## Bug report\r\n\r\nAfter upgrade from 1.5.3 to 1.6.X or 1.7.X on Windows or Linux machines I get a strange behavior.\r\n\r\nSome outputs like inputs.mem and inputs.sqlserver just disappears from the prometheus exposed list (http://myserver/metrics) but works perfectly with --test switch on command line.\r\n\r\nI've tried to run as different user (on windows) and using IP address instead of name as well, and none worked.\r\nThere's no relevant logs on log file or running with \"debug\" flag as true.\r\n\r\nI will be glad to provide more information with you need.\r\n\r\nThank you.\r\n\r\n### Relevant telegraf.conf:\r\n```\r\n[global_tags]\r\n  collector = \"telegraf\"\r\n  fqdn = \"myserver.mydomain\"\r\n  location = \"mylocation\"\r\n  ostype = \"windows\"\r\n[[outputs.prometheus_client]]\r\n  expiration_interval = \"60s\"\r\n  listen = \"0.0.0.0:9273\"\r\n[[inputs.mem]]\r\n[[inputs.sqlserver]]\r\n  query_version = 2\r\n  servers = [ \"Server=localhost\\\\instance;User Id=telegraf;Password=telegraf;app name=telegraf;encrypt=disable;log=0\"]\t\r\n```\r\n\r\n### System info:\r\n\r\nTelegraf 1.6.X and above.\r\nUsing Prometheus Output plugin.\r\n\r\n### Steps to reproduce:\r\n\r\nUpgrade to 1.6.X or above.\r\n\r\n### Expected behavior:\r\nOutput from version 1.5.3:\r\n```\r\ncurl http://myserver02/metrics\r\n\r\n# HELP mem_active Telegraf collected metric\r\n# TYPE mem_active counter\r\nmem_active{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 0\r\n# HELP mem_available Telegraf collected metric\r\n# TYPE mem_available counter\r\nmem_available{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 5.204361216e+09\r\n# HELP mem_available_percent Telegraf collected metric\r\n# TYPE mem_available_percent counter\r\nmem_available_percent{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 17.31076795555045\r\n# HELP mem_buffered Telegraf collected metric\r\n# TYPE mem_buffered counter\r\nmem_buffered{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 0\r\n# HELP mem_cached Telegraf collected metric\r\n# TYPE mem_cached counter\r\nmem_cached{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 0\r\n# HELP mem_free Telegraf collected metric\r\n# TYPE mem_free counter\r\nmem_free{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 0\r\n# HELP mem_inactive Telegraf collected metric\r\n# TYPE mem_inactive counter\r\nmem_inactive{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 0\r\n# HELP mem_slab Telegraf collected metric\r\n# TYPE mem_slab counter\r\nmem_slab{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 0\r\n# HELP mem_total Telegraf collected metric\r\n# TYPE mem_total counter\r\nmem_total{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 3.0064300032e+10\r\n# HELP mem_used Telegraf collected metric\r\n# TYPE mem_used counter\r\nmem_used{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 2.4859938816e+10\r\n# HELP mem_used_percent Telegraf collected metric\r\n# TYPE mem_used_percent counter\r\nmem_used_percent{collector=\"telegraf\",fqdn=\"myserver02.mydomain\",host=\"myserver02\",location=\"mylocation\",ostype=\"windows\"} 82.68923204444955\r\n```\r\n\r\n### Actual behavior:\r\nVersion 1.6.x and above\r\n\r\nOutput from command line:\r\n```\r\nc:\\Program Files\\telegraf>telegraf.exe -config \"c:\\Program Files\\telegraf\\telegraf.conf\" --config-directory \"c:\\Program Files\\telegraf\\telegraf.d\" --test --input-filter mem\r\n\r\n> mem,collector=telegraf,fqdn=myserver,host=myserver,location=mylocation,ostype=windows active=0i,available=8255950848i,available_percent=48.057264930773286,buffered=0i,cached=0i,free=i,inactive=0i,slab=0i,total=17179402240i,used=8923451392i,used_percent=51.942735069226714,wire=0i 1522960875000000000\r\n```\r\n\r\nOutput from curl \"http://myserver/metrics\":\r\n```\r\n# TYPE mem_available_percent counter\r\nmem_available_percent{collector=\"telegraf\",fqdn=\"myserver\",host=\"myserver\",location=\"mylocation\",ostype=\"windows\"} 48.13911625367473\r\n# HELP mem_used_percent Telegraf collected metric\r\n# TYPE mem_used_percent counter\r\nmem_used_percent{collector=\"telegraf\",fqdn=\"myserver\",host=\"myserver\",location=\"mylocation\",ostype=\"windows\"} 51.86088374632527\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/379271500","html_url":"https://github.com/influxdata/telegraf/issues/3977#issuecomment-379271500","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/3977","id":379271500,"user":{"login":"allangood","id":757086,"avatar_url":"https://avatars1.githubusercontent.com/u/757086?v=4","gravatar_id":"","url":"https://api.github.com/users/allangood","html_url":"https://github.com/allangood","followers_url":"https://api.github.com/users/allangood/followers","following_url":"https://api.github.com/users/allangood/following{/other_user}","gists_url":"https://api.github.com/users/allangood/gists{/gist_id}","starred_url":"https://api.github.com/users/allangood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allangood/subscriptions","organizations_url":"https://api.github.com/users/allangood/orgs","repos_url":"https://api.github.com/users/allangood/repos","events_url":"https://api.github.com/users/allangood/events{/privacy}","received_events_url":"https://api.github.com/users/allangood/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T14:31:52Z","updated_at":"2018-04-06T14:31:52Z","author_association":"NONE","body":"Hi @danielnelson \r\n\r\nI've tested today and found that the \"mem\" plugin is working, but the sqlserver plugin still not working properly.\r\n\r\nAll outputs for \"Performance Counters\" (sqlserver_performance) are missing.\r\nThe output for these counters are working:\r\n- Database IO\r\n- Memory Clerk\r\n- Server properties\r\n- Wait stats\r\n\r\nI'm not sure if all plugins are affected by this bug because I don't have a way to test all of them, sorry.\r\n\r\nThank you for your support."}}
{"actor":{"display_login":"allangood"}}