Skip to content
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

Open
wants to merge 125 commits into
base: postgres
Choose a base branch
from
Open

fix: example in readme #2

wants to merge 125 commits into from

Commits on Apr 20, 2021

  1. Configuration menu
    Copy the full SHA
    a1bd367 View commit details
    Browse the repository at this point in the history
  2. make address configurable

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    0afa350 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bcca5c8 View commit details
    Browse the repository at this point in the history
  4. add tests

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    a13ac44 View commit details
    Browse the repository at this point in the history
  5. fix sql placeholder

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    1a6b1c4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5ea8868 View commit details
    Browse the repository at this point in the history
  7. adjust test cases to datatype changes

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    8aa03cf View commit details
    Browse the repository at this point in the history
  8. remove debug prints

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    749e757 View commit details
    Browse the repository at this point in the history
  9. check if table exists before creating

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    e157258 View commit details
    Browse the repository at this point in the history
  10. allow skipping tags

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    05df41b View commit details
    Browse the repository at this point in the history
  11. refactoring

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    4c35bff View commit details
    Browse the repository at this point in the history
  12. implement TagsAsForeignkeys

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    07dcf4e View commit details
    Browse the repository at this point in the history
  13. fix tests

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    8348b7e View commit details
    Browse the repository at this point in the history
  14. add SampleConfig

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    feee01c View commit details
    Browse the repository at this point in the history
  15. register driver

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    7b0315b View commit details
    Browse the repository at this point in the history
  16. update README

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    cd4363f View commit details
    Browse the repository at this point in the history
  17. prepare for create table template

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    8d5ad62 View commit details
    Browse the repository at this point in the history
  18. quote identifier

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    a1e6b9a View commit details
    Browse the repository at this point in the history
  19. refactor generateInsert

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    b87f066 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    22d8a1e View commit details
    Browse the repository at this point in the history
  21. remove nondeterministic tests

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    212125f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    c3874cf View commit details
    Browse the repository at this point in the history
  23. make TableTemplate configurable

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    d5f27b4 View commit details
    Browse the repository at this point in the history
  24. add quoteLiteral helper function

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    8ee4803 View commit details
    Browse the repository at this point in the history
  25. add tests for quoting

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    7e3330c View commit details
    Browse the repository at this point in the history
  26. add TABLELITERAL to template variables

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    ee6fd6b View commit details
    Browse the repository at this point in the history
  27. fix template in doc

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    236ddb9 View commit details
    Browse the repository at this point in the history
  28. dont add primary key

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    09f311a View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    9dc0fed View commit details
    Browse the repository at this point in the history
  30. document jsonb settings

    remove IgnoredTags since tagexclude achieves the same
    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    8fb25ae View commit details
    Browse the repository at this point in the history
  31. document template better

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    a0868dd View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    05a9096 View commit details
    Browse the repository at this point in the history
  33. make tag table suffix configurable

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    0fbbe99 View commit details
    Browse the repository at this point in the history
  34. comment out noisy log messages when fk reference is not found

    handle text datatype and log unknown datatypes on table creation
    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    079bf70 View commit details
    Browse the repository at this point in the history
  35. handle missing columns

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    b337ffd View commit details
    Browse the repository at this point in the history
  36. remove dead code

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    4d58e93 View commit details
    Browse the repository at this point in the history
  37. postgresql output: boolean columns

    saaros authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    352a105 View commit details
    Browse the repository at this point in the history
  38. 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.
    saaros authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    9ddb5f0 View commit details
    Browse the repository at this point in the history
  39. use timestamptz for time column

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    7e989e0 View commit details
    Browse the repository at this point in the history
  40. adjust test to timestamptz change

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    e50c752 View commit details
    Browse the repository at this point in the history
  41. fix code formatting (gofmt)

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    a7cf1c7 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    c33e057 View commit details
    Browse the repository at this point in the history
  43. handle uint64 as datatype

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    b20dd45 View commit details
    Browse the repository at this point in the history
  44. fix Printf call

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    41a5155 View commit details
    Browse the repository at this point in the history
  45. show all config parameters in readme

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    9178024 View commit details
    Browse the repository at this point in the history
  46. use CREATE TABLE IF NOT EXISTS

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    b43071e View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    f6fa727 View commit details
    Browse the repository at this point in the history
  48. fix TABLELITERAL quoting

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    99970bc View commit details
    Browse the repository at this point in the history
  49. pg output: Support defining schema for metrics tables

    Make sure explicit schema is always used and allow changing that from
    public into something else.
    rikonen authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    150a2a7 View commit details
    Browse the repository at this point in the history
  50. 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.
    rikonen authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    4adb096 View commit details
    Browse the repository at this point in the history
  51. pg output: Don't try closing nil rows

    Used to cause SIGSEGV when the operation failed
    rikonen authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    3d2d42f View commit details
    Browse the repository at this point in the history
  52. adjust test output

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    bbfd604 View commit details
    Browse the repository at this point in the history
  53. add schema config settting to README

    svenklemm authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    a76cbaa View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    046d52d View commit details
    Browse the repository at this point in the history
  55. 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.
    Blagoj Atanasovski authored and phemmer committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    4c24bc3 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. 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
    Blagoj Atanasovski authored and phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    22aff8c View commit details
    Browse the repository at this point in the history
  2. Attempt reconnect to db if conn is lost and support PG env variables

    Blagoj Atanasovski authored and phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    e559ac5 View commit details
    Browse the repository at this point in the history
  3. error thrown on insufficient permissions

    Blagoj Atanasovski authored and phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    44fabb8 View commit details
    Browse the repository at this point in the history
  4. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    ac63696 View commit details
    Browse the repository at this point in the history
  5. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    bc10b00 View commit details
    Browse the repository at this point in the history
  6. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    680ea4b View commit details
    Browse the repository at this point in the history
  7. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    5966abd View commit details
    Browse the repository at this point in the history
  8. 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).
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    7a9d8d7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a4b8a81 View commit details
    Browse the repository at this point in the history
  10. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    2659ac5 View commit details
    Browse the repository at this point in the history
  11. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    adcef5f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    79146a8 View commit details
    Browse the repository at this point in the history
  13. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    aff0c3e View commit details
    Browse the repository at this point in the history
  14. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    a344a3c View commit details
    Browse the repository at this point in the history
  15. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    7f464f1 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c6df522 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e33f46f View commit details
    Browse the repository at this point in the history
  18. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    9f206c5 View commit details
    Browse the repository at this point in the history
  19. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    fec5a95 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    9f1d8c1 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    05af57e View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    07d5d46 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c39a091 View commit details
    Browse the repository at this point in the history
  24. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    5759658 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    e87c9f6 View commit details
    Browse the repository at this point in the history
  26. outputs.postgresql: add tests

    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    b51987f View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    1a507bc View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    eb03fda View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    cd49b3e View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    ceb6d35 View commit details
    Browse the repository at this point in the history
  31. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    5603641 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    517f02c View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    4fed553 View commit details
    Browse the repository at this point in the history
  34. update modules after rebase

    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    82c3170 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    a7e2b51 View commit details
    Browse the repository at this point in the history
  36. 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.
    phemmer committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    46f31cd View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. outputs.postgresql: remove panics on dropTagColumn & dropFieldColumn

    These scenarios should never happen, but might as well just return an error instead.
    phemmer committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    cd6203d View commit details
    Browse the repository at this point in the history
  2. 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.
    phemmer committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    2bd9699 View commit details
    Browse the repository at this point in the history
  3. outputs.postgresql: use testutil.MustMetric

    per-code-review, use testutil.MustMetric instead of metric.New
    phemmer committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    21bdd23 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a0ed7c View commit details
    Browse the repository at this point in the history
  5. outputs.postgresql: use struct for args to test batchGenerator

    addresses linter warning
    phemmer committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    2d553db View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    08ed5e7 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. Configuration menu
    Copy the full SHA
    93aec6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff644a9 View commit details
    Browse the repository at this point in the history
  3. 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)
      ...
    phemmer committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    fa5f937 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2021

  1. Configuration menu
    Copy the full SHA
    04d2764 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. Configuration menu
    Copy the full SHA
    a1316ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55f071b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed55f2f View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. Configuration menu
    Copy the full SHA
    50c8b39 View commit details
    Browse the repository at this point in the history
  2. outputs.postgresql: fix error handling on sequential writes

    permanent errors on sub-batches were resulting in retries
    phemmer committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    3f946a2 View commit details
    Browse the repository at this point in the history
  3. 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.
    phemmer committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    48315bb View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

  1. Configuration menu
    Copy the full SHA
    1936779 View commit details
    Browse the repository at this point in the history
  2. 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.
    phemmer committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    0038e57 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1bcc5c2 View commit details
    Browse the repository at this point in the history
  4. 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.
    phemmer committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    94f0b74 View commit details
    Browse the repository at this point in the history
  5. 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)
    phemmer committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    40ef1f9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2d84174 View commit details
    Browse the repository at this point in the history
  7. 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.
    phemmer committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    a00e292 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. Configuration menu
    Copy the full SHA
    10c0810 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. 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.
    phemmer committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    96a1b41 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04cfa33 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. outputs.postgresql: fix column removal

    fixes incorrect column re-indexing when a column was removed from TableSource
    phemmer committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    402b4ec View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2022

  1. 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)
      ...
    phemmer committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    02ee794 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2022

  1. Configuration menu
    Copy the full SHA
    0665544 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2022

  1. 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)
      ...
    phemmer committed Feb 18, 2022
    Configuration menu
    Copy the full SHA
    ddb5575 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e511d6 View commit details
    Browse the repository at this point in the history
  3. 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)
      ...
    phemmer committed Feb 18, 2022
    Configuration menu
    Copy the full SHA
    e87744d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e27281f View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2022

  1. fix: example in readme

    jsbrain committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    efaecae View commit details
    Browse the repository at this point in the history