Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
817 matches across 10 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | secretstore.go | 21 | // ResolveFunc is a function to resolve the secret. |
| LOW | processor.go | 21 | // can choose to save it in the plugin, or use the one received from Add(). |
| LOW | .golangci.yml | 61 | # `$all` - matches all go files |
| LOW | .golangci.yml | 421 | # https://staticcheck.dev/docs/checks/#QF1001 |
| LOW | .golangci.yml | 481 | # |
| LOW | .golangci.yml | 561 | # Section configuration to compare against. |
| LOW | .golangci.yml | 601 | # The formats used to render issues. |
| LOW | .golangci.yml | 621 | sort-order: |
| LOW | serializer.go | 1 | package telegraf |
| LOW | plugin.go | 21 | |
| LOW | plugin.go | 41 | // persist an internal state across Telegraf runs. |
| LOW | metric.go | 61 | // Type returns a general type for the entire metric that describes how you |
| LOW | parser.go | 1 | package telegraf |
| LOW | cmd/telegraf/printer.go | 21 | sectionDefaults = []string{"global_tags", "agent", "secretstores", "outputs", "processors", "aggregators", "inputs"} |
| LOW | cmd/telegraf/printer.go | 41 | # Environment variables can be used anywhere in this config file, simply surround |
| LOW | config/config.go | 181 | } |
| LOW | config/config.go | 201 | // Precision will NOT be used for service inputs. It is up to each individual |
| LOW | config/config.go | 221 | // number of telegraf instances. |
| LOW | config/config.go | 281 | // If uncommented and not empty, this file will be used to save the state of |
| LOW | config/secret.go | 61 | Buffer() (SecretBuffer, error) |
| LOW | config/testdata/envvar_comments.toml | 1 | # Telegraf Configuration |
| LOW | config/testdata/single_plugin_env_vars.toml | 1 | # Telegraf Configuration |
| LOW | config/testdata/telegraf-agent.toml | 1 | # Telegraf configuration |
| LOW | config/testdata/telegraf-agent.toml | 81 | totalcpu = true |
| LOW | config/testdata/telegraf-agent.toml | 141 | # no configuration |
| LOW | config/testdata/telegraf-agent.toml | 161 | |
| LOW | config/testdata/telegraf-agent.toml | 181 | master_collections = ["resources","master","system","slaves","frameworks","messages","evqueue","registrar"] |
| LOW | config/testdata/telegraf-agent.toml | 201 | servers = ["localhost"] |
| LOW | config/testdata/telegraf-agent.toml | 221 | count = 1 # required |
| LOW | config/testdata/telegraf-agent.toml | 241 | # with the same name as the user. This dbname is just for instantiating a |
| LOW | config/testdata/telegraf-agent.toml | 261 | # Read metrics from one or many RabbitMQ servers via the management API |
| LOW | config/testdata/telegraf-agent.toml | 281 | |
| LOW | …ugins/parsers/openmetrics/openmetrics_data_model.pb.go | 361 | // |
| LOW | …ins/parsers/openmetrics/testcases/valid_info/input.txt | 1 | # HELP cadvisor_version A metric with a constant '1' value labeled by kernel version, OS version, docker version, cadvis |
| LOW | …ugins/parsers/openmetrics/testcases/multiple/input.txt | 21 | # HELP process_cpu_seconds Total user and system CPU time spent in seconds. |
| LOW | …ns/parsers/openmetrics/testcases/valid_gauge/input.txt | 1 | # HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program st |
| LOW | …/parsers/openmetrics/testcases/valid_unknown/input.txt | 1 | # HELP redis_connected_clients Redis connected clients |
| LOW | …/parsers/openmetrics/testcases/valid_counter/input.txt | 1 | # TYPE get_token_fail_count counter |
| LOW | plugins/parsers/influx/README.md | 21 | ## and more memory efficient. |
| LOW | plugins/parsers/xpath/README.md | 101 | XPath expressions. |
| LOW | plugins/parsers/xpath/README.md | 121 | # xpath_protobuf_import_paths = ["."] |
| LOW | plugins/parsers/xpath/README.md | 141 | ## Multiple parsing sections are allowed |
| LOW | plugins/parsers/xpath/README.md | 161 | |
| LOW | plugins/parsers/xpath/README.md | 221 | ## Name of the protocol-buffer message type to use in a fully qualified form. |
| LOW | plugins/parsers/xpath/README.md | 241 | ## Optional: XPath-query to select a subset of nodes from the XML document. |
| LOW | plugins/parsers/xpath/README.md | 261 | # field_name = "name()" |
| LOW | plugins/parsers/grok/README.md | 81 | |
| LOW | plugins/parsers/grok/README.md | 101 | ## Other common built-in patterns are: |
| LOW | plugins/parsers/json/README.md | 41 | |
| LOW | plugins/parsers/json/README.md | 61 | ## json_time_format = "unix" |
| LOW | plugins/parsers/avro/README.md | 41 | ## Avro data format settings |
| LOW | plugins/parsers/avro/README.md | 61 | # "name":"Value", |
| LOW | plugins/parsers/avro/README.md | 81 | ## from this field. If not set, determine measurement name |
| LOW | plugins/parsers/avro/README.md | 101 | ## to one of 'unix', 'unix_ms', 'unix_us', or 'unix_ns'. It will |
| LOW | plugins/parsers/csv/README.md | 21 | ## If `csv_column_names` is specified, the column names in header will be overridden. |
| LOW | plugins/parsers/csv/README.md | 41 | ## If set, the parser would use the provided separators in the csv_metadata_separators to look for metadata. |
| LOW | plugins/parsers/csv/README.md | 61 | ## By default, the parser assumes a comma (",") |
| LOW | plugins/parsers/csv/README.md | 101 | ## Indicates values to skip, such as an empty string value "". |
| LOW | plugins/parsers/binary/README.md | 21 | ## Specify the endianness of the data. |
| LOW | plugins/parsers/binary/README.md | 41 | ## name -- Name of the element (e.g. field or tag). Can be omitted |
| 690 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | config/secret_test.go | 0 | server=sqltelegraf\\sql2022;app name=telegraf;log=1; |
| HIGH | config/secret_test.go | 0 | server=sqltelegraf\\sql2022;app name=telegraf;log=1; |
| HIGH | config/secret_test.go | 0 | server=sqltelegraf\\sql2022;app name=telegraf;log=1; |
| HIGH | config/secret_test.go | 0 | server=sqltelegraf\\sql2022;app name=telegraf;log=1; |
| HIGH | config/testdata/envvar_comments.toml | 0 | # drop fields if they contain a string. # # example input: # measurement,host=hostname a=1,b="somestring" 15972554100000 |
| HIGH | config/testdata/envvar_comments.toml | 0 | # drop fields if they contain a string. # # example input: # measurement,host=hostname a=1,b="somestring" 15972554100000 |
| HIGH | config/testdata/envvar_comments_expected.toml | 0 | # drop fields if they contain a string. # # example input: # measurement,host=hostname a=1,b="somestring" 15972554100000 |
| HIGH | config/testdata/envvar_comments_expected.toml | 0 | # drop fields if they contain a string. # # example input: # measurement,host=hostname a=1,b="somestring" 15972554100000 |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} add column if not exists {{ .columns|join ", add column if not exists " }} |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} add column if not exists {{ .columns|join ", add column if not exists " }} |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} add column if not exists {{ .columns|join ", add column if not exists " }} |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} add column if not exists {{ .columns|join ", add column if not exists " }} |
| HIGH | plugins/outputs/postgresql/README.md | 0 | select create_hypertable({{ .table|quoteliteral }}, 'time', chunk_time_interval => interval '7d') |
| HIGH | plugins/outputs/postgresql/README.md | 0 | select create_hypertable({{ .table|quoteliteral }}, 'time', chunk_time_interval => interval '7d') |
| HIGH | plugins/outputs/postgresql/README.md | 0 | select create_hypertable({{ .table|quoteliteral }}, 'time', chunk_time_interval => interval '7d') |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} set (timescaledb.compress, timescaledb.compress_segmentby = 'tag_id') |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} set (timescaledb.compress, timescaledb.compress_segmentby = 'tag_id') |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} set (timescaledb.compress, timescaledb.compress_segmentby = 'tag_id') |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{ .table }} set (timescaledb.compress, timescaledb.compress_segmentby = 'tag_id') |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | alter table {{ .table }} set (timescaledb.compress, timescaledb.compress_segmentby = 'tag_id') |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | alter table {{ .table }} set (timescaledb.compress, timescaledb.compress_segmentby = 'tag_id') |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | alter table {{ .table }} set (timescaledb.compress, timescaledb.compress_segmentby = 'tag_id') |
| HIGH | plugins/outputs/postgresql/README.md | 0 | alter table {{.table}} add column if not exists {{.columns|join ", add column if not exists "}} |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | alter table {{.table}} add column if not exists {{.columns|join ", add column if not exists "}} |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | alter table {{.table}} add column if not exists {{.columns|join ", add column if not exists "}} |
| HIGH | plugins/outputs/postgresql/README.md | 0 | create view {{ .table.withschema "public" }} as select time, {{ (.tagtable.columns.tags.concat .allcolumns.fields).ident |
| HIGH | plugins/outputs/postgresql/README.md | 0 | create view {{ .table.withschema "public" }} as select time, {{ (.tagtable.columns.tags.concat .allcolumns.fields).ident |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | create view {{ .table.withschema "public" }} as select time, {{ (.tagtable.columns.tags.concat .allcolumns.fields).ident |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | create view {{ .table.withschema "public" }} as select time, {{ (.tagtable.columns.tags.concat .allcolumns.fields).ident |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | select create_hypertable({{ .table|quoteliteral }}, 'time', chunk_time_interval => interval '1d') |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | select create_hypertable({{ .table|quoteliteral }}, 'time', chunk_time_interval => interval '1d') |
| HIGH | plugins/outputs/postgresql/sqltemplate/template.go | 0 | select create_hypertable({{ .table|quoteliteral }}, 'time', chunk_time_interval => interval '1d') |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | agent/agent.go | 40 | // ┌───────┐ |
| MEDIUM | agent/agent.go | 42 | // └───────┘ │ |
| MEDIUM | agent/agent.go | 43 | // ┌───────┐ │ ______ |
| MEDIUM | agent/agent.go | 45 | // └───────┘ │ |
| MEDIUM | agent/agent.go | 46 | // ┌───────┐ │ |
| MEDIUM | agent/agent.go | 48 | // └───────┘ |
| MEDIUM | agent/agent.go | 54 | // ______ ┌───────────┐ ______ |
| MEDIUM | agent/agent.go | 56 | // └───────────┘ |
| MEDIUM | agent/agent.go | 68 | // ┌────────────┐ |
| MEDIUM | agent/agent.go | 70 | // │ └────────────┘ │ |
| MEDIUM | agent/agent.go | 71 | // ______ │ ┌────────────┐ │ ______ |
| MEDIUM | agent/agent.go | 73 | // │ └────────────┘ │ |
| MEDIUM | agent/agent.go | 74 | // │ ┌────────────┐ │ |
| MEDIUM | agent/agent.go | 76 | // │ └────────────┘ |
| MEDIUM | agent/agent.go | 78 | // └────────────────────────▶ ()_____) |
| MEDIUM | agent/agent.go | 90 | // ┌────────┐ |
| MEDIUM | agent/agent.go | 92 | // │ └────────┘ |
| MEDIUM | agent/agent.go | 93 | // ______ ┌─────┐ │ ┌────────┐ |
| MEDIUM | agent/agent.go | 95 | // └─────┘ │ └────────┘ |
| MEDIUM | agent/agent.go | 96 | // │ ┌────────┐ |
| MEDIUM | agent/agent.go | 98 | // └────────┘ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | plugins/inputs/procstat/procstat_test.go | 181 | // Add the tags as requested by the user |
| HIGH | plugins/inputs/procstat/process.go | 207 | // Add the tags as requested by the user |
| HIGH | plugins/inputs/filecount/filecount_test.go | 215 | // create our desired "filesystem" object, complete with an internal map allowing our funcs to return meta data as requ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | config/testdata/telegraf-agent.toml | 120 | # Or you can also use local socket(not work yet) |
| MEDIUM | plugins/inputs/statsd/statsd.go | 1010 | s.Log.Warn("Maximum TCP Connections reached, you may want to adjust max_tcp_connections") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | plugins/outputs/opentsdb/opentsdb_test.go | 196 | testutil.TestMetric("Lorem Ipsum", "justametric.string"), |
| LOW | …ins/inputs/influxdb_listener/influxdb_listener_test.go | 173 | TokenUsername: "John Doe", |
| LOW | …ins/inputs/influxdb_listener/influxdb_listener_test.go | 204 | TokenUsername: "John Doe", |
| LOW | …ins/inputs/influxdb_listener/influxdb_listener_test.go | 235 | TokenUsername: "John Doe", |
| LOW | plugins/inputs/consul/consul_test.go | 17 | Notes: "lorem ipsum", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …ns/inputs/webhooks/filestack/testdata/dialog_open.json | 15 | "apikey": "YOUR_API_KEY", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | plugins/parsers/csv/parser_test.go | 1642 | // Stress test with more goroutines and iterations to ensure robust thread safety |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | config/config.go | 529 | // At this point we need to check if the files under /etc/telegraf are |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/check-plugin-changes.sh | 9 | # Check if we're in a pull request |