Comments (4)
@nick-kentik please submit your change as a PR!
from telegraf.
@srebhan as I said, I don't think it's a complete fix
from telegraf.
Yeah, just poking one at random, it looks like the kibana input plugin has the same issue, for instance.
A complete fix would need to audit each of these files and make sure CloseIdleConnections()
is called, or perhaps consider a different approach (a non-zero default for idle_conn_timeout
perhaps?)
plugins/outputs/http/http.go:94: client, err := h.HTTPClientConfig.CreateClient(ctx, h.Log)
plugins/outputs/cloudwatch/cloudwatch.go:167: client, err := c.HTTPClientConfig.CreateClient(ctx, c.Log)
plugins/inputs/vault/vault.go:64: client, err := n.HTTPClientConfig.CreateClient(ctx, n.Log)
plugins/inputs/prometheus/prometheus.go:216: client, err := p.HTTPClientConfig.CreateClient(ctx, p.Log)
plugins/inputs/elasticsearch_query/elasticsearch_query.go:202: return e.HTTPClientConfig.CreateClient(ctx, e.Log)
plugins/inputs/logstash/logstash.go:139: return logstash.HTTPClientConfig.CreateClient(ctx, logstash.Log)
plugins/inputs/http/http.go:70: client, err := h.HTTPClientConfig.CreateClient(ctx, h.Log)
plugins/inputs/elasticsearch/elasticsearch.go:291: return e.HTTPClientConfig.CreateClient(ctx, e.Log)
plugins/inputs/ctrlx_datalayer/ctrlx_datalayer.go:280: c.connection, err = c.HTTPClientConfig.CreateClient(ctx, c.Log)
plugins/inputs/kibana/kibana.go:155: return k.HTTPClientConfig.CreateClient(ctx, k.Log)
plugins/inputs/openstack/openstack.go:151: client, err := o.HTTPClientConfig.CreateClient(ctx, o.Log)
plugins/secretstores/http/http.go:50: client, err := h.HTTPClientConfig.CreateClient(ctx, h.Log)
The config workaround doesn't work for me, since our config files need to work across both 1.21.4 and 1.27.4 at the moment, so I'm unlikely to have time to dedicate to upstream for a bit.
from telegraf.
PR: #15213
from telegraf.
Related Issues (20)
- memory leak HOT 3
- Add back constants in the logging package HOT 2
- NSEL (Firewall netflow) remapping from NetFlow v9 to NSEL HOT 3
- Metrics aren't displayed (outputs.prometheus_client) HOT 3
- TOML parser issue HOT 1
- Starting Telegraf Agent as service with invalid statefile does not produce error message HOT 6
- [inputs. kafka_consumer] Multiple Telegraf instances in the same group but only one is consuming HOT 4
- OAuth2 Secret store does not work HOT 7
- testifylint->blank-import - Should we enable it? HOT 1
- testifylint->float-compare - Should we enable it?
- testifylint->go-require - Should we enable it?
- testifylint->negative-positive - Should we enable it?
- testifylint->nil-compare - Should we enable it?
- testifylint->useless-assert - Should we enable it?
- Deployment status of `testifylint` checkers
- govet->fieldalignment - Should we enable it?
- Allow setting custom HTTP headers for Elasticsearch input
- gNMI got empty metric name for response
- AWS S3 Output Plugin
- sqlserver.input less tag counter values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegraf.