-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: example in readme #2
base: postgres
Are you sure you want to change the base?
Commits on Apr 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a1bd367 - Browse repository at this point
Copy the full SHA a1bd367View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0afa350 - Browse repository at this point
Copy the full SHA 0afa350View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcca5c8 - Browse repository at this point
Copy the full SHA bcca5c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a13ac44 - Browse repository at this point
Copy the full SHA a13ac44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a6b1c4 - Browse repository at this point
Copy the full SHA 1a6b1c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ea8868 - Browse repository at this point
Copy the full SHA 5ea8868View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aa03cf - Browse repository at this point
Copy the full SHA 8aa03cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 749e757 - Browse repository at this point
Copy the full SHA 749e757View commit details -
Configuration menu - View commit details
-
Copy full SHA for e157258 - Browse repository at this point
Copy the full SHA e157258View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05df41b - Browse repository at this point
Copy the full SHA 05df41bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c35bff - Browse repository at this point
Copy the full SHA 4c35bffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07dcf4e - Browse repository at this point
Copy the full SHA 07dcf4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8348b7e - Browse repository at this point
Copy the full SHA 8348b7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for feee01c - Browse repository at this point
Copy the full SHA feee01cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b0315b - Browse repository at this point
Copy the full SHA 7b0315bView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd4363f - Browse repository at this point
Copy the full SHA cd4363fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d5ad62 - Browse repository at this point
Copy the full SHA 8d5ad62View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1e6b9a - Browse repository at this point
Copy the full SHA a1e6b9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b87f066 - Browse repository at this point
Copy the full SHA b87f066View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22d8a1e - Browse repository at this point
Copy the full SHA 22d8a1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 212125f - Browse repository at this point
Copy the full SHA 212125fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3874cf - Browse repository at this point
Copy the full SHA c3874cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5f27b4 - Browse repository at this point
Copy the full SHA d5f27b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ee4803 - Browse repository at this point
Copy the full SHA 8ee4803View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e3330c - Browse repository at this point
Copy the full SHA 7e3330cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee6fd6b - Browse repository at this point
Copy the full SHA ee6fd6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 236ddb9 - Browse repository at this point
Copy the full SHA 236ddb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09f311a - Browse repository at this point
Copy the full SHA 09f311aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dc0fed - Browse repository at this point
Copy the full SHA 9dc0fedView commit details -
remove IgnoredTags since tagexclude achieves the same
Configuration menu - View commit details
-
Copy full SHA for 8fb25ae - Browse repository at this point
Copy the full SHA 8fb25aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0868dd - Browse repository at this point
Copy the full SHA a0868ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05a9096 - Browse repository at this point
Copy the full SHA 05a9096View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fbbe99 - Browse repository at this point
Copy the full SHA 0fbbe99View commit details -
comment out noisy log messages when fk reference is not found
handle text datatype and log unknown datatypes on table creation
Configuration menu - View commit details
-
Copy full SHA for 079bf70 - Browse repository at this point
Copy the full SHA 079bf70View commit details -
Configuration menu - View commit details
-
Copy full SHA for b337ffd - Browse repository at this point
Copy the full SHA b337ffdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d58e93 - Browse repository at this point
Copy the full SHA 4d58e93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 352a105 - Browse repository at this point
Copy the full SHA 352a105View commit details -
postgresql output: batch inserts to the same table/column set
Batches are created for every (table, columns) set as we may have metrics with different set of tags & fields in the same batch. This speeds up inserts quite a bit by reducing the number of separate insert statements. Grouping inserts requires columns to appear in the same order, so we now sort them for both tags & fields. This code could use a bit of tidying.
Configuration menu - View commit details
-
Copy full SHA for 9ddb5f0 - Browse repository at this point
Copy the full SHA 9ddb5f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e989e0 - Browse repository at this point
Copy the full SHA 7e989e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e50c752 - Browse repository at this point
Copy the full SHA e50c752View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7cf1c7 - Browse repository at this point
Copy the full SHA a7cf1c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c33e057 - Browse repository at this point
Copy the full SHA c33e057View commit details -
Configuration menu - View commit details
-
Copy full SHA for b20dd45 - Browse repository at this point
Copy the full SHA b20dd45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41a5155 - Browse repository at this point
Copy the full SHA 41a5155View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9178024 - Browse repository at this point
Copy the full SHA 9178024View commit details -
Configuration menu - View commit details
-
Copy full SHA for b43071e - Browse repository at this point
Copy the full SHA b43071eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6fa727 - Browse repository at this point
Copy the full SHA f6fa727View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99970bc - Browse repository at this point
Copy the full SHA 99970bcView commit details -
pg output: Support defining schema for metrics tables
Make sure explicit schema is always used and allow changing that from public into something else.
Configuration menu - View commit details
-
Copy full SHA for 150a2a7 - Browse repository at this point
Copy the full SHA 150a2a7View commit details -
pg output: Retry writing metrics after adding missing columns
In some cases metrics datapoints only contain subset of all fields that may be present for that metric. When storing columns separately instead of using JSON getting new columns always resulted in the write failing on first metric that was missing any columns and depending on how often write was getting called and how many metrics had this behavior there was potentially very long delay in getting all metrics through.
Configuration menu - View commit details
-
Copy full SHA for 4adb096 - Browse repository at this point
Copy the full SHA 4adb096View commit details -
pg output: Don't try closing nil rows
Used to cause SIGSEGV when the operation failed
Configuration menu - View commit details
-
Copy full SHA for 3d2d42f - Browse repository at this point
Copy the full SHA 3d2d42fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbfd604 - Browse repository at this point
Copy the full SHA bbfd604View commit details -
Configuration menu - View commit details
-
Copy full SHA for a76cbaa - Browse repository at this point
Copy the full SHA a76cbaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 046d52d - Browse repository at this point
Copy the full SHA 046d52dView commit details -
Refactor PostgreSQL output plugin code
The PostgreSQL plugin code is split up in multiple files for better readability. Unit and Integration tests are written. Code complexity reduced a bit by reducing branching.
Configuration menu - View commit details
-
Copy full SHA for 4c24bc3 - Browse repository at this point
Copy the full SHA 4c24bc3View commit details
Commits on Jul 13, 2021
-
Optimize insert performance of metrics and tag_id lookup
A refactor was done that optimized several things: 1. Metrics are organized by measurement and schema validation is done only once instead of every metric 2. Metric values are batched and inserted with binary COPY 3. Tag IDs are now cached with a LRU strategy
Configuration menu - View commit details
-
Copy full SHA for 22aff8c - Browse repository at this point
Copy the full SHA 22aff8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e559ac5 - Browse repository at this point
Copy the full SHA e559ac5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44fabb8 - Browse repository at this point
Copy the full SHA 44fabb8View commit details -
outputs.postgresql: fix tag table creation to ignore template
commit 69fea1c broke tags_as_foreign keys when used with table_template. The template was being used for creation of the tag table when it should not be.
Configuration menu - View commit details
-
Copy full SHA for ac63696 - Browse repository at this point
Copy the full SHA ac63696View commit details -
outputs.postgresql: Use a deterministic tag key
The previous code used a postgres serial for the tag table key. This results in telegraf having to lookup from the table to obtain the key. While there was an LRU cache to keep telegraf from having to constantly query, this posed a few problems. 1. The LRU cache is of a fixed size, but the performance can go from perfectly fine, to rock bottom as soon as you exceed the cache size. There is no gradual degredation that would allow the admin to detect the issue before it gets too bad. This has major repercussions as telegraf won't be able to keep up with ingest rate and will start dropping data. 2. The default for this cache was really small (1000), which is even likely too small for common use cases. 3. When telegraf starts up, the cache is cold, and so performance will be terrible while it is repopulated, again resulting in data loss. The new solution solves this by using a deterministic tag key that does not require a lookup. The key is a 64-bit integer from the hash/maphash package. This hash is specifically designed for creating a hash of a string/bytes that can be used as a lookup key.
Configuration menu - View commit details
-
Copy full SHA for bc10b00 - Browse repository at this point
Copy the full SHA bc10b00View commit details -
outputs.postgresql: Sort columns on table creation
This is just a convenience so that when doing `select *`, you don't get a random order. This is not meant to be a perfect solution as any additional columns that are added to the table definition will not be sorted (this is just how postgres works). It's just meant so that the column ordering isn't a complete mess, making the life of the DBA somewhat better.
Configuration menu - View commit details
-
Copy full SHA for 680ea4b - Browse repository at this point
Copy the full SHA 680ea4bView commit details -
outputs.postgresql: Use standard postgres data types
Previously the code used a mix of standard data types and extension types. This changes it to always use the standard postgres types. This addresses any inconsistencies that may arise due to the code not understanding that 2 types are really the same.
Configuration menu - View commit details
-
Copy full SHA for 5966abd - Browse repository at this point
Copy the full SHA 5966abdView commit details -
outputs.postgresql: use connection pool
This switches the output to use a connection pool for managing the connection. Previously connection management was being done manually, accomplishing the same thing as if you had a pool size of 1. So this makes it much simpler. This also removes the dbWrapper abstraction layer. There's no point to it when there's only one database driver. Plus having access to the underlying pool will make future work easier (without having to expand the abstraction, at which point it's no longer abstracting).
Configuration menu - View commit details
-
Copy full SHA for 7a9d8d7 - Browse repository at this point
Copy the full SHA 7a9d8d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4b8a81 - Browse repository at this point
Copy the full SHA a4b8a81View commit details -
outputs.postgresql: cache table structure
Previous code was querying the table structure prior to every insert. We should instead cache the table structure, and just assume the admin isn't going to do something silly like dropping columns or deleting the table while we're using it.
Configuration menu - View commit details
-
Copy full SHA for 2659ac5 - Browse repository at this point
Copy the full SHA 2659ac5View commit details -
outputs.postgresql: refactor table structure management
Previous code was performing a table structure lookup before every insert, which has an obvious performance impact. However instead of just adding caching, the whole thing was ripped out and replaced. Bunch of reasons, but the new code is simpler, more memory efficient, and faster.
Configuration menu - View commit details
-
Copy full SHA for adcef5f - Browse repository at this point
Copy the full SHA adcef5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79146a8 - Browse repository at this point
Copy the full SHA 79146a8View commit details -
outputs.postgresql: give more control over table templating
Previously the plugin only allowed very minor control over table templating. Could only adjust the table creation SQL for the main metrics table, and not the tag table. User also had no control over the ALTER TABLE statements. This changes it so that all table CREATE & ALTER statements are configurable. Additionally the templating was switched out from a rigid string substitution to Go templates. This allows a lot more flexibility in what can be done. Lastly instead of only having a single statement per operation, requiring `;` to delimit multiple statements, the configuration now allows a list of statements, all run within a transaction. This is because pgx uses prepared statements, and postgres does not allow more than 1 command (command, not query) inside a prepared statement.
Configuration menu - View commit details
-
Copy full SHA for aff0c3e - Browse repository at this point
Copy the full SHA aff0c3eView commit details -
outputs.postgresql: Drop metrics with missing tag columns in DB
When schema updates are disabled, drop any metrics with tags that aren't in the database. We don't want to just throw an error as the rest of the metrics might be fine. We also don't want to insert without that tag as this can result in a collision with other metrics.
Configuration menu - View commit details
-
Copy full SHA for a344a3c - Browse repository at this point
Copy the full SHA a344a3cView commit details -
outputs.postgresql: Re-add population of the tag table
Had previously been removed while the code was being ripped apart. But now that the plugin is stabilizing, it's time to add it back. Still needs cleanup (note the TODO statements), but it's functional and moderately performant.
Configuration menu - View commit details
-
Copy full SHA for 7f464f1 - Browse repository at this point
Copy the full SHA 7f464f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6df522 - Browse repository at this point
Copy the full SHA c6df522View commit details -
Configuration menu - View commit details
-
Copy full SHA for e33f46f - Browse repository at this point
Copy the full SHA e33f46fView commit details -
identify tag columns using PG column comments
Some template methods filter columns based on role. For some columns, we can tell by the name (e.g. 'time' or 'tag_id'). However tag & field columns look the same. So we need a way to differentiate them. This change accomplishes that by identifying tag columns by using a PG column comment.
Configuration menu - View commit details
-
Copy full SHA for 9f206c5 - Browse repository at this point
Copy the full SHA 9f206c5View commit details -
outputs/postgresql: split templating into its own package
This is so that when users are looking up documentation on the templating functions, theyre not bombarded by lots of docs on internal methods that they don't care about. Few other misc code cleanup things pulled in as well.
Configuration menu - View commit details
-
Copy full SHA for fec5a95 - Browse repository at this point
Copy the full SHA fec5a95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f1d8c1 - Browse repository at this point
Copy the full SHA 9f1d8c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05af57e - Browse repository at this point
Copy the full SHA 05af57eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07d5d46 - Browse repository at this point
Copy the full SHA 07d5d46View commit details -
Configuration menu - View commit details
-
Copy full SHA for c39a091 - Browse repository at this point
Copy the full SHA c39a091View commit details -
output/postgresql: Use a transaction for sequential writes
Since we send feedback to telegraf on error, it will retry the batch. Use a transaction to ensure that we don't insert the same data twice.
Configuration menu - View commit details
-
Copy full SHA for 5759658 - Browse repository at this point
Copy the full SHA 5759658View commit details -
Configuration menu - View commit details
-
Copy full SHA for e87c9f6 - Browse repository at this point
Copy the full SHA e87c9f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b51987f - Browse repository at this point
Copy the full SHA b51987fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a507bc - Browse repository at this point
Copy the full SHA 1a507bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb03fda - Browse repository at this point
Copy the full SHA eb03fdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd49b3e - Browse repository at this point
Copy the full SHA cd49b3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ceb6d35 - Browse repository at this point
Copy the full SHA ceb6d35View commit details -
outputs.postgresql: remove dbConnectedHook for clearing caches
Remove the code that cleared caches on total DB connection loss. The intent was to be able to reset known state in the event of things like a database failover. But this is such an edge case, it's not worth the maintenance of the code. If we ever want it back, it's here, in the git history.
Configuration menu - View commit details
-
Copy full SHA for 5603641 - Browse repository at this point
Copy the full SHA 5603641View commit details -
Configuration menu - View commit details
-
Copy full SHA for 517f02c - Browse repository at this point
Copy the full SHA 517f02cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fed553 - Browse repository at this point
Copy the full SHA 4fed553View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82c3170 - Browse repository at this point
Copy the full SHA 82c3170View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7e2b51 - Browse repository at this point
Copy the full SHA a7e2b51View commit details -
address 'go vet' unkeyed field complaints.
This is a gray result. The point behind the go vet complaint is to prevent breakages when 3rd party packages update. However this isn't a third party package. Also adds some slight documentation cleanup on the utils package.
Configuration menu - View commit details
-
Copy full SHA for 46f31cd - Browse repository at this point
Copy the full SHA 46f31cdView commit details
Commits on Jul 15, 2021
-
outputs.postgresql: remove panics on dropTagColumn & dropFieldColumn
These scenarios should never happen, but might as well just return an error instead.
Configuration menu - View commit details
-
Copy full SHA for cd6203d - Browse repository at this point
Copy the full SHA cd6203dView commit details -
outputs.postgresql: rename template package to sqltemplate
golangci-lint is complaining that the package name shadows an import. This statement is incorrect, and no shaowing is happening. So renaming just to make the linter happy.
Configuration menu - View commit details
-
Copy full SHA for 2bd9699 - Browse repository at this point
Copy the full SHA 2bd9699View commit details -
outputs.postgresql: use testutil.MustMetric
per-code-review, use testutil.MustMetric instead of metric.New
Configuration menu - View commit details
-
Copy full SHA for 21bdd23 - Browse repository at this point
Copy the full SHA 21bdd23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a0ed7c - Browse repository at this point
Copy the full SHA 9a0ed7cView commit details -
outputs.postgresql: use struct for args to test batchGenerator
addresses linter warning
Configuration menu - View commit details
-
Copy full SHA for 2d553db - Browse repository at this point
Copy the full SHA 2d553dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08ed5e7 - Browse repository at this point
Copy the full SHA 08ed5e7View commit details
Commits on Aug 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 93aec6f - Browse repository at this point
Copy the full SHA 93aec6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff644a9 - Browse repository at this point
Copy the full SHA ff644a9View commit details -
Merge remote-tracking branch 'origin/master' into postgres
* origin/master: (183 commits) fix: CrateDB replace dots in tag keys with underscores (influxdata#9566) feat: Pull metrics from multiple AWS CloudWatch namespaces (influxdata#9386) fix: improve Clickhouse corner cases for empty recordset in aggregation queries, fix dictionaries behavior (influxdata#9401) fix(opcua): clean client on disconnect so that connect works cleanly (influxdata#9583) fix: Refactor ec2 init for config-api (influxdata#9576) fix: sort logs by timestamp before writing to Loki (influxdata#9571) fix: muting tests for udp_listener (influxdata#9578) fix: Do not return on disconnect to avoid breaking reconnect (influxdata#9524) fix: Fixing k8s nodes and pods parsing error (influxdata#9581) feat: OpenTelemetry output plugin (influxdata#9228) feat: Support AWS Web Identity Provider (influxdata#9411) fix: upgraded sensu/go to v2.9.0 (influxdata#9577) fix: Normalize unix socket path (influxdata#9554) docs: fix aws ec2 readme inconsistency (influxdata#9567) feat: Modbus Rtu over tcp enhancement (influxdata#9570) docs: information on new conventional commit format (influxdata#9573) docs: Add logo (influxdata#9574) docs: Adding links to net_irtt and dht_sensor external plugins (influxdata#9569) Upgrade hashicorp/consul/api to 1.9.1 (influxdata#9565) Update vmware/govmomi to v0.26.0 (influxdata#9552) Do not skip good quality nodes after a bad quality node is encountered (influxdata#9550) fix test so it hits a fake service (influxdata#9564) Update changelog Fix procstat plugin README to match sample config (influxdata#9553) Fix metrics reported as written but not actually written (influxdata#9526) Prevent segfault in persistent volume claims (influxdata#9549) Update procstat to support cgroup globs & include systemd unit children (Copy of influxdata#7890) (influxdata#9488) Fix attempt to connect to an empty list of servers. (influxdata#9503) Fix handling bool in sql input plugin (influxdata#9540) Suricata alerts (influxdata#9322) Linter fixes for plugins/inputs/[fg]* (influxdata#9387) For Prometheus Input add ability to query Consul Service catalog (influxdata#5464) Support Landing page on Prometheus landing page (influxdata#8641) [Docs] Clarify tagging behavior (influxdata#9461) Change the timeout from all queries to per query (influxdata#9471) Attach the pod labels to the `kubernetes_pod_volume` & `kubernetes_pod_network` metrics. (influxdata#9438) feat(http_listener_v2): allows multiple paths and add path_tag (influxdata#9529) Bug Fix Snmp empty metric name (influxdata#9519) Worktable workfile stats (influxdata#8587) Update Go to v1.16.6 (influxdata#9542) ...
Configuration menu - View commit details
-
Copy full SHA for fa5f937 - Browse repository at this point
Copy the full SHA fa5f937View commit details
Commits on Aug 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 04d2764 - Browse repository at this point
Copy the full SHA 04d2764View commit details
Commits on Aug 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a1316ae - Browse repository at this point
Copy the full SHA a1316aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55f071b - Browse repository at this point
Copy the full SHA 55f071bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed55f2f - Browse repository at this point
Copy the full SHA ed55f2fView commit details
Commits on Aug 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 50c8b39 - Browse repository at this point
Copy the full SHA 50c8b39View commit details -
outputs.postgresql: fix error handling on sequential writes
permanent errors on sub-batches were resulting in retries
Configuration menu - View commit details
-
Copy full SHA for 3f946a2 - Browse repository at this point
Copy the full SHA 3f946a2View commit details -
outputs.postgresql: don't try to detect mismatched data types
the admin may deliberately re-type a column because because they know a value will never exceed a more optimized type. The error response is the same in both cases (permanent with sub-batch drop), so let the DB handle it instead. In the future, we may want to detect values that won't fit inside a column type on a per-row basis (in TableSource), but this means more code, and right now handling the admin's broken database scheme isn't worth it.
Configuration menu - View commit details
-
Copy full SHA for 48315bb - Browse repository at this point
Copy the full SHA 48315bbView commit details
Commits on Sep 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1936779 - Browse repository at this point
Copy the full SHA 1936779View commit details -
outputs.postgresql: rewrite schema updates to address concurrency issues
Total rewrite of TableManager.EnsureStructure. This addresses concurrency issues with multiple telegraf processes attempting to create tables at the same time. The code is longer, but also simpler.
Configuration menu - View commit details
-
Copy full SHA for 0038e57 - Browse repository at this point
Copy the full SHA 0038e57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bcc5c2 - Browse repository at this point
Copy the full SHA 1bcc5c2View commit details -
outputs.postgresql: fix missing .allColumns template values
In the event that the local table cache was missing columns, but the DB had them, when performing a table update the missing columns wouldn't be passed to the template.
Configuration menu - View commit details
-
Copy full SHA for 94f0b74 - Browse repository at this point
Copy the full SHA 94f0b74View commit details -
outputs.postgresql: use timestamp without time zone
major performance hit in timescaledb for some queries when timestamp with time zone is used: timescale/timescaledb#118 (comment)
Configuration menu - View commit details
-
Copy full SHA for 40ef1f9 - Browse repository at this point
Copy the full SHA 40ef1f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d84174 - Browse repository at this point
Copy the full SHA 2d84174View commit details -
outputs.postgresql: fixes for cache
Addresses 2 problems with the tag cache: 1. The same tag ID in use by multiple tables would collide, causing one not to be inserted. 2. The cache sizing was grossly underestimated. Also added some debug logging for cache statistics.
Configuration menu - View commit details
-
Copy full SHA for a00e292 - Browse repository at this point
Copy the full SHA a00e292View commit details
Commits on Oct 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 10c0810 - Browse repository at this point
Copy the full SHA 10c0810View commit details
Commits on Oct 13, 2021
-
outputs.postgresql: better handling of DDL errors
When a DDL statement (adding columns) errors, instead of failing the whole write operation, treat permanent errors as if DDL statements were disabled. Meaning on fields, just drop the field, and on tags, drop the metric. Temporary errors still fail so that retry won't result in data loss.
Configuration menu - View commit details
-
Copy full SHA for 96a1b41 - Browse repository at this point
Copy the full SHA 96a1b41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04cfa33 - Browse repository at this point
Copy the full SHA 04cfa33View commit details
Commits on Oct 26, 2021
-
outputs.postgresql: fix column removal
fixes incorrect column re-indexing when a column was removed from TableSource
Configuration menu - View commit details
-
Copy full SHA for 402b4ec - Browse repository at this point
Copy the full SHA 402b4ecView commit details
Commits on Jan 3, 2022
-
Merge remote-tracking branch 'origin/master' into postgres
* origin/master: (176 commits) fix: Linter fixes for plugins/inputs/[h-j]* (influxdata#9986) fix(inputs/kube_inventory): don't skip resources with zero s/ns timestamps (influxdata#9978) fix: update gjson to v1.10.2 (influxdata#9998) fix: procstat tags were not getting generated correctly (influxdata#9973) chore: create bug report form (influxdata#9976) fix: Allow for non x86 macs in Go install script (influxdata#9982) test: add sqlserver plugin integration tests (influxdata#9943) feat: plugins/common/tls/config.go: Filter client certificates by DNS names (influxdata#9910) feat: add option to skip table creation in azure data explorer output (influxdata#9942) docs: update nightlies links (influxdata#9989) fix: add s390x to nightlies (influxdata#9990) feat: Add more details to processors.ifname logmessages (influxdata#9984) docs: Create SECURITY.md (influxdata#9951) fix: set NIGHTLY=1 for correctly named nightly artifacts (influxdata#9987) feat: Kafka Add metadata full to config (influxdata#9833) chore: Update to AWS SDK v2 (influxdata#9647) chore: lint ignore fmt.Printf unhandled error (influxdata#9967) fix: starlark pop operation for non-existing keys (influxdata#9954) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#9876) fix: Check return code of zfs command for FreeBSD. (influxdata#9956) chore: update go to 1.17.2 (influxdata#9873) fix: Graylog plugin TLS support and message format (influxdata#9862) docs: update README with info on package repos (influxdata#9964) feat: Modbus connection settings (serial) (influxdata#9256) fix: segfault in ingress, persistentvolumeclaim, statefulset in kube_inventory (influxdata#9585) fix: add normalization of tags for ethtool input plugin (influxdata#9901) chore: remove empty build.py (influxdata#9958) fix: internet_speed input plugin not collecting/reporting latency (influxdata#9957) chore: reference db2 external plugin (influxdata#9952) chore: update readme go version from 1.14 to 1.17 (influxdata#9944) fix: decode Prometheus scrape path from Kuberentes labels (influxdata#9662) docs: fix broken link (influxdata#9812) fix: Correct conversion of int with specific bit size (influxdata#9933) fix: update golanci-lint to v1.42.1 (influxdata#9932) feat: Azure Event Hubs output plugin (influxdata#9346) feat: more fields for papertrail event webhook (influxdata#9940) fix: solve compatibility issue for mongodb inputs when using 5.x relicaset (influxdata#9892) docs: Add symlink to command documentation (influxdata#9926) docs: update contributing.md (influxdata#9914) chore: reference oracle external plugin (influxdata#9934) ...
Configuration menu - View commit details
-
Copy full SHA for 02ee794 - Browse repository at this point
Copy the full SHA 02ee794View commit details
Commits on Feb 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0665544 - Browse repository at this point
Copy the full SHA 0665544View commit details
Commits on Feb 18, 2022
-
Merge remote-tracking branch 'origin/master' into postgres
* origin/master: (133 commits) chore: restart service if it is already running and upgraded via RPM (influxdata#9970) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#10237) fix: Handle duplicate registration of protocol-buffer files gracefully. (influxdata#10188) fix(http_listener_v2): fix panic on close (influxdata#10132) feat: add Vault input plugin (influxdata#10198) feat: support aws managed service for prometheus (influxdata#10202) fix: Make telegraf compile on Windows with golang 1.16.2 (influxdata#10246) Update changelog feat: Modbus add per-request tags (influxdata#10231) fix: Implement NaN and inf handling for elasticsearch output (influxdata#10196) feat: add nomad input plugin (influxdata#10106) fix: Print loaded plugins and deprecations for once and test (influxdata#10205) fix: eliminate MIB dependency for ifname processor (influxdata#10214) feat: Optimize locking for SNMP MIBs loading. (influxdata#10206) feat: Add SMART plugin concurrency configuration option, nvme-cli v1.14+ support and lint fixes. (influxdata#10150) feat: update configs (influxdata#10236) fix(inputs/kube_inventory): set TLS server name config properly (influxdata#9975) fix: Sudden close of Telegraf caused by OPC UA input plugin (influxdata#10230) fix: bump github.com/eclipse/paho.mqtt.golang from 1.3.0 to 1.3.5 (influxdata#9913) fix: json_v2 parser timestamp setting (influxdata#10221) fix: ensure graylog spec fields not prefixed with '_' (influxdata#10209) docs: remove duplicate links in CONTRIBUTING.md (influxdata#10218) fix: pool detection and metrics gathering for ZFS >= 2.1.x (influxdata#10099) fix: parallelism fix for ifname processor (influxdata#10007) chore: Forbids "log" package only for aggregators, inputs, outputs, parsers and processors (influxdata#10191) docs: address documentation gap when running telegraf in k8s (influxdata#10215) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#10211) fix: mqtt topic extracting no longer requires all three fields (influxdata#10208) fix: windows service - graceful shutdown of telegraf (influxdata#9616) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#10201) feat: Modbus support multiple slaves (gateway feature) (influxdata#9279) fix: Revert unintented corruption of the Makefile from influxdata#10200. (influxdata#10203) chore: remove triggering update-config bot in CI (influxdata#10195) Update changelog feat: Implement deprecation infrastructure (influxdata#10200) fix: extra lock on init for safety (influxdata#10199) fix: resolve influxdata#10027 (influxdata#10112) fix: register bigquery to output plugins influxdata#10177 (influxdata#10178) fix: sysstat use unique temp file vs hard-coded (influxdata#10165) refactor: snmp to use gosmi (influxdata#9518) ...
Configuration menu - View commit details
-
Copy full SHA for ddb5575 - Browse repository at this point
Copy the full SHA ddb5575View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e511d6 - Browse repository at this point
Copy the full SHA 0e511d6View commit details -
Merge remote-tracking branch 'origin/master' into postgres
* origin/master: (211 commits) feat: update configs (influxdata#10676) feat[elastic output]: add elastic pipeline flags (influxdata#10505) Update changelog fix: ensure folders do not get loaded more than once (influxdata#10551) docs: update VMWare doc links (influxdata#10663) fix: prometheusremotewrite wrong timestamp unit (influxdata#10547) feat: update configs (influxdata#10662) fix: add graylog toml tags (influxdata#10660) feat: add socks5 proxy support for kafka output plugin (influxdata#8192) docs: override reported OpenSearch version (influxdata#10586) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#10659) fix: bump all go.opentelemetry.io dependencies (influxdata#10647) feat: collection offset implementation (influxdata#10545) chore: update go to 1.17.7 (influxdata#10658) fix: check for nil client before closing in amqp (influxdata#10635) fix: timestamp change during execution of json_v2 parser. (influxdata#10657) fix: bump github.com/signalfx/golib/v3 from 3.3.38 to 3.3.43 (influxdata#10652) fix: bump github.com/aliyun/alibaba-cloud-sdk-go (influxdata#10653) fix: incorrect handling of json_v2 timestamp_path (influxdata#10618) feat: gather additional stats from memcached (influxdata#10641) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#10649) fix: Revert deprecation of http_listener_v2 (influxdata#10648) fix: bump github.com/denisenkom/go-mssqldb from 0.10.0 to 0.12.0 (influxdata#10503) fix: bump github.com/gopcua/opcua from 0.2.3 to 0.3.1 (influxdata#10626) fix: use current time as ecs timestamp (influxdata#10636) fix: bump github.com/nats-io/nats-server/v2 from 2.6.5 to 2.7.2 (influxdata#10638) chore: add -race flag to go tests (influxdata#10629) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#10631) fix: license doc outdated causing CI failure (influxdata#10630) fix: bump k8s.io/client-go from 0.22.2 to 0.23.3 (influxdata#10589) feat: Implemented support for reading raw values, added tests and doc (influxdata#6501) fix: Improve parser tests by using go-cmp/cmp (influxdata#10497) feat(mongodb): add FsTotalSize and FsUsedSize informations (influxdata#10625) docs: update quay docs for auth (influxdata#10612) chore: allow downgrade of go version in windows script (influxdata#10614) chore: update CI go to 1.17.6 (influxdata#10611) feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxdata#10600) fix(inputs.opcua): add more data to error log (influxdata#10465) fix: bump github.com/aws/aws-sdk-go-v2/service/kinesis from 1.6.0 to 1.13.0 (influxdata#10601) refactor: use early return pattern (influxdata#10591) ...
Configuration menu - View commit details
-
Copy full SHA for e87744d - Browse repository at this point
Copy the full SHA e87744dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e27281f - Browse repository at this point
Copy the full SHA e27281fView commit details
Commits on Feb 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for efaecae - Browse repository at this point
Copy the full SHA efaecaeView commit details