Commit Graph

3458 Commits

Author SHA1 Message Date
Dhia Ayachi d24156db14 generate a single debug file for a long duration capture (#10279)
* debug: remove the CLI check for debug_enabled

The API allows collecting profiles even debug_enabled=false as long as
ACLs are enabled. Remove this check from the CLI so that users do not
need to set debug_enabled=true for no reason.

Also:
- fix the API client to return errors on non-200 status codes for debug
  endpoints
- improve the failure messages when pprof data can not be collected

Co-Authored-By: Dhia Ayachi <dhia@hashicorp.com>

* remove parallel test runs

parallel runs create a race condition that fail the debug tests

* snapshot the timestamp at the beginning of the capture

- timestamp used to create the capture sub folder is snapshot only at the beginning of the capture and reused for subsequent captures
- capture append to the file if it already exist

* Revert "snapshot the timestamp at the beginning of the capture"

This reverts commit c2d03346

* Refactor captureDynamic to extract capture logic for each item in a different func

* snapshot the timestamp at the beginning of the capture

- timestamp used to create the capture sub folder is snapshot only at the beginning of the capture and reused for subsequent captures
- capture append to the file if it already exist

* Revert "snapshot the timestamp at the beginning of the capture"

This reverts commit c2d03346

* Refactor captureDynamic to extract capture logic for each item in a different func

* extract wait group outside the go routine to avoid a race condition

* capture pprof in a separate go routine

* perform a single capture for pprof data for the whole duration

* add missing vendor dependency

* add a change log and fix documentation to reflect the change

* create function for timestamp dir creation and simplify error handling

* use error groups and ticker to simplify interval capture loop

* Logs, profile and traces are captured for the full duration. Metrics, Heap and Go routines are captured every interval

* refactor Logs capture routine and add log capture specific test

* improve error reporting when log test fail

* change test duration to 1s

* make time parsing in log line more robust

* refactor log time format in a const

* test on log line empty the earliest possible and return

Co-authored-by: Freddy <freddygv@users.noreply.github.com>

* rename function to captureShortLived

* more specific changelog

Co-authored-by: Paul Banks <banks@banksco.de>

* update documentation to reflect current implementation

* add test for behavior when invalid param is passed to the command

* fix argument line in test

* a more detailed description of the new behaviour

Co-authored-by: Paul Banks <banks@banksco.de>

* print success right after the capture is done

* remove an unnecessary error check

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>

* upgraded github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57 => v0.0.0-20210601050228-01bbb1931b22

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>
Co-authored-by: Freddy <freddygv@users.noreply.github.com>
Co-authored-by: Paul Banks <banks@banksco.de>
2021-06-07 17:12:54 +00:00
hc-github-team-consul-core bbcbb733b4
Release v1.9.6 2021-06-04 20:45:53 +00:00
Paul Ewing ef533f7c33
usagemetrics: add cluster members to metrics API (#10340) (#10346)
This PR adds cluster members to the metrics API. The number of members per
segment are reported as well as the total number of members.

Tested by running a multi-node cluster locally and ensuring the numbers were
correct. Also added unit test coverage to add the new expected gauges to
existing test cases.
2021-06-03 10:35:45 -07:00
Matt Keeler 5eb34113dd Update changelog and add telemetry docs (#10107) 2021-04-23 20:05:38 +00:00
Kyle Havlovitz f65b9ac4cf Merge pull request #9672 from hashicorp/ca-force-skip-xc
connect/ca: Allow ForceWithoutCrossSigning for all providers
2021-04-20 15:30:37 -05:00
hashicorp-ci 3c1c22679e
Release v1.9.5 2021-04-15 18:15:03 +00:00
Kent 'picat' Gruber dc937c9532 Merge pull request #10023 from hashicorp/fix-raw-kv-xss
Add content type headers to raw KV responses
2021-04-15 13:44:02 +00:00
Mike Wickett b8c7982a00 Merge pull request #10008 from hashicorp/mw.update-homepage-links
website: update why hashicorp links
2021-04-14 14:59:05 +00:00
ketzacoatl dcb3679401 add consul-haskell to libraries-and-sdks documentation (#9982)
See also https://github.com/alphaHeavy/consul-haskell/issues/40.
2021-04-14 01:07:10 +00:00
Kendall Strautman f1e78729b7 fix(website): docs link text color (#10001) 2021-04-12 17:48:22 +00:00
Zachary Shilton 1a28cd9175 website: implement mktg 032 (#9953)
* website: migrate to new nav-data format

* website: clean up unused intro content

* website: remove deprecated sidebar_title from frontmatter

* website: add react-content to fix global style import issue
2021-04-07 19:51:54 +00:00
Brandon Romano ee2c1e93f7 Merge pull request #9975 from hashicorp/br.stackmenu
Upgrades the Stackmenu to latest
2021-04-07 16:37:12 +00:00
Mike Wickett c99e94a8df Merge pull request #9936 from hashicorp/asm.nq.k8s-service-mesh-focus
website: homepage changes
2021-04-01 19:37:49 +00:00
Mike Green 09adada274 Docs: add enterprise upgrade link (#9934)
* add enterprise upgrade note
* Update index.mdx
2021-03-30 00:03:42 +00:00
lornasong 8316bcd8b0 nia/docs 0.1.0 ga (#9946)
* docs/nia: consul compatibilty

* docs/nia: remove beta callouts (#9919)

Co-authored-by: Kim Ngo <6362111+findkim@users.noreply.github.com>
2021-03-29 19:23:49 +00:00
Bryce Kalow bb503f6c1f website: add should-build script (#9896) 2021-03-29 15:10:33 +00:00
Sabeen Syed 8d70a6c3da Add link to TF module tutorial and example TF modules (#9937)
Add link to TF tutorial
Add links to print TF module and template for TF modules
2021-03-29 04:20:37 +00:00
Sabeen Syed 650064b519 Add Avi Network, AWS ALB and NS1 TF Registies and GitHub links (#9938)
Add Avi Network GH link
Add AWS ALB TF Registry and GH link
Add NS1 TF Registry and GH link
2021-03-27 06:53:19 +00:00
Daniel Nephin 6544539954 Merge pull request #9917 from Ranjandas/docs/exec-cmd-acl
Document agent token policy requirement for rexec
2021-03-25 21:50:25 +00:00
danielehc e40940f110
Cherrypick NIA doc cross linking (#9928) 2021-03-25 18:01:51 +01:00
Ranjandas ee93193239 Merge pull request #9838 from Ranjandas/master
Fix TLS cert creation instruction for Consul federation
2021-03-24 15:54:30 +00:00
Jono Sosulska d8be22a75c Update telemetry docs (#9905)
* Fixes #2379-Improve interval explanation in the telemetry doc

* Fixes #4734-Update consul memory metrics

* Fixes #4836-Removed node.deregistration as that isn't in state.go

* Fixes #8986 partially-Trim redundant language

* Fixes #9087-Adds helpful details to telemetry on autopilot

* Fixes #9274-Addresses NaN output in autopilot
2021-03-22 22:50:50 +00:00
Kim Ngo 245591abac docs/nia: Update CTS configuration example to not confuse vault provider with vault config block (#9909) 2021-03-19 21:53:24 +00:00
Iryna Shustava b812746b44 docs: Update Helm reference docs (#9904) 2021-03-19 16:13:33 +00:00
Nitya Dhanushkodi 2d81a45b22 Add metrics documentation (#9848) 2021-03-19 00:21:38 +00:00
Christoph Puhl a366ff075d Removing unnecessary comment (#9890)
Removing unnecessary comment around CRL to avoid confusion, as discussed with @banks
2021-03-18 18:40:28 +00:00
Luke Kysow 0dc8f3f5cc docs: rename SourceAddress to SourceIP (#9878)
SourceAddress was probably renamed to SourceIP but the docs weren't
updated.
2021-03-15 21:40:12 +00:00
Freddy 5f54d1d24f Merge pull request #9107 from hashicorp/docs-prepared-query-namespace
Add namespaces to prepared query API docs
2021-03-15 19:09:49 +00:00
Preetha 31e58b1aaf Small changes to gossip related telemetry docs (#9846)
Update gossip related telemetry docs to include correct descriptions, and added missing metrics
2021-03-15 17:00:14 +00:00
Mike Wickett 1399d43991 Merge pull request #9874 from hashicorp/mw.patch-docs-issue
docs: fixup syntax issue
2021-03-11 22:46:12 +00:00
Mike Wickett d167e3662a Merge pull request #9867 from hashicorp/mw.update-alert-banner
Update alert banner
2021-03-11 19:55:24 +00:00
Freddy 7a17c790b2 Merge pull request #9869 from DanielMabbett/patch-1
Fix typo in requirements.mdx
2021-03-11 19:50:34 +00:00
Freddy 5776ef8f03 Merge pull request #9770 from hashicorp/docs/fix-terminating-gateway-config-entry
Docs: Update terminating-gateway-config-entry
2021-03-11 19:42:59 +00:00
Robert Kuska fe24d9a192 Add units and types to metrics tables (#9674)
This commits adds units and types to key metrics tables to have
consistent table views of all metrics in telemetry.mdx.

Fixes: https://github.com/hashicorp/consul/issues/9069
2021-03-11 03:43:16 +00:00
hashicorp-ci 10bb6cb3b0
Release v1.9.4 2021-03-04 19:24:43 +00:00
Daniel Nephin dd0b307c8f Merge pull request #9188 from hashicorp/dnephin/more-streaming-tests
Add more streaming tests
2021-02-26 17:37:29 +00:00
Kim Ngo 07bf4eca12
nia/docs 0.1.0 beta (#9803) (#9834)
nia/docs 0.1.0-beta

Co-authored-by: Kent 'picat' Gruber <kent@hashicorp.com>
Co-authored-by: Lorna Song <lorna@hashicorp.com>
Co-authored-by: John Eikenberry <jae@zhar.net>
2021-02-25 17:32:01 -06:00
Blake Covarrubias 7aba0ae256 docs: Fix code tag displaying on ACL binding rules
Fix indentation of code blocks on ACL binding rules page so that code
fence does not display in JSON output.
2021-02-22 23:18:59 +00:00
kaitlincarter-hc 1325536e41 fix typo and add link to Learn (#9799) 2021-02-22 16:33:03 +00:00
Noel Quiles 5a4e527dd0 [Website] Use new logo for Mercedes use case (#9717)
* Use new logo for Mercedes use case

* Fix home logo
2021-02-22 16:20:14 +00:00
Daniel Nephin 510ccae055 Merge pull request #9777 from hashicorp/dnephin/remove-some-deprecation
docs: remove a couple deprecations
2021-02-19 18:31:59 +00:00
kaitlincarter-hc 73a1d314df rotate homepage tutorials (#9787) 2021-02-18 22:03:16 +00:00
Ashwin Venkatesh 09802dda52 Update helm docs for consul-helm v0.30.0 (#9779) 2021-02-17 19:09:11 +00:00
Luke Kysow c8ea81efeb Docs describing migrating to CRDs (#9562)
* Document how users can migrate to CRDs.
* Update documentation for federation with new `ProxyDefaults`
requirement.
* Ensure `controller.enabled: true` is set in our example configs.
* Remove `connect-service-protocol` annotation docs.
2021-02-17 19:02:37 +00:00
Zachary Shilton aaaa05a677 Bump components to remove client-side md processing (#9773) 2021-02-17 15:22:51 +00:00
Paul Banks 4b5f34e49a Add docs for MIME sniffing on metrics endpoint. (#9696)
* Add docs for MIME sniffing on metrics endpoint.

This was added in 1.7.2 last year but I realised we don't document it so it's kinda surprising Prometheus "just works" now.

* Update website/content/api-docs/agent/index.mdx
2021-02-17 10:40:20 +00:00
Eddie Rowe a8de5f6e00 Merge pull request #9762 from hashicorp/er/nagios-sensu-update
Consul vs Nagios/sensu page updates
2021-02-12 18:35:56 +00:00
Daniel Nephin 8db1a08fc9 Merge pull request #9758 from hashicorp/dnephin/fix-streaming-bugs
http: error if near is used with streaming
2021-02-12 15:38:33 +00:00
Preetha bee9b55f3e Add docs section on regenerating expired CA certificates (#9709)
* Updated docs on regenerating built in CA

* review feedback

* Add sentence about expected behavior after update CA endpoint is used.
2021-02-11 21:39:28 +00:00
R.B. Boyer dd277b8ca8
connect: update supported envoy point releases to 1.16.2, 1.15.3, 1.14.6, 1.13.7 (#9737) (#9753) 2021-02-10 13:28:12 -06:00