You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
@@ -12,21 +12,6 @@ To configure your agent to emit telemetry data, you must include the `-otlp-addr
12
12
13
13
Optionally, you can pass the `-otlp-cert-file` or `TFC_AGENT_OTLP_CERT_FILE`. The agent will use a certificate at the path supplied to encrypt the client connection to the OpenTelemetry collector. When omitted, client connections are not secured.
14
14
15
-
## Metrics
16
-
17
-
An example of the metric names that the agent will emit is `tfc-agent.terraform.plan-json.generate.bytes`. Breaking down those sections:
18
-
19
-
*`tfc-agent`: Metric names will be namespaced with tfc-agent to distinguish them from other metrics your system may be emitting.
20
-
*`terraform`: Metric names may have a prefix with a component name, when a component is applicable.
21
-
*`plan-json`: This shows that the metric in question is about the step of the agent process where JSON representations of the Terraform plan and Terraform provider schema are generated and uploaded.
22
-
*`generate`: Specifically, it is about the generation of the JSON artifacts.
23
-
*`bytes`: When a metric requires a unit in order to be understood, an un-abbreviated unit will be the last component of the metric name.
24
-
25
-
In addition, agent metrics will follow some conventions around unit types:
26
-
27
-
* All timing metrics (other than runtime metrics) will be measured in milliseconds.
28
-
* All data size metrics will be measured in bytes.
29
-
30
15
## Tracing
31
16
32
17
In addition to metrics, the agent emits tracing spans that can be consumed by various distributed tracing tools. Information about supported tools can be found on the [OpenTelemetry Registry](https://opentelemetry.io/registry/). A span is a single unit of work performed by the agent.
@@ -38,6 +23,146 @@ Spans conform to the following rules:
38
23
* Span attributes in the `tfc` namespace will have information relevant to the entire operation.
39
24
* Span attributes in the `debug` namespace will have information relevant to the current span's scope.
40
25
41
-
## Stability
26
+
## Metrics
27
+
28
+
The Terraform Cloud Agent emits numerous metrics describing the agent's
29
+
performance. The metrics documented on this page are considered stable and will
30
+
not change in any significant way between stable releases of the same major
31
+
version.
32
+
33
+
### Metric naming conventions
34
+
35
+
An example of the metric names that the agent will emit is
36
+
`tfc-agent.terraform.plan-json.generate.bytes`. Breaking down those sections:
37
+
38
+
*`tfc-agent`: Metric names will be namespaced with tfc-agent to distinguish
39
+
them from other metrics your system may be emitting.
40
+
*`terraform`: Metric names may have a prefix with a component name, when a
41
+
component is applicable.
42
+
*`plan-json`: This shows that the metric in question is about the step of the
43
+
agent process where JSON representations of the Terraform plan and Terraform
44
+
provider schema are generated and uploaded.
45
+
*`generate`: Specifically, it is about the generation of the JSON artifacts.
46
+
*`bytes`: When a metric requires a unit in order to be understood, an un-
47
+
abbreviated unit will be the last component of the metric name.
48
+
49
+
In addition, agent metrics will follow some conventions around unit types:
50
+
51
+
* All timing metrics (other than runtime metrics) will be measured in milliseconds.
52
+
* All data size metrics will be measured in bytes.
42
53
43
-
Metric names and definitions are not guaranteed to be stable at this time. HashiCorp will make an effort not to break existing monitoring of the agent, but metric names may change at any time. As the telemetry system matures, HashiCorp may add selected stable metrics to this documentation which will be covered by our versioning policy.
54
+
While all of the metric names emitted by the tfc-agent use hyphens, some systems
55
+
may automatically convert these to underscores.
56
+
57
+
### Core metrics
58
+
59
+
The following metrics are generated by the Terraform Cloud Agent core program,
60
+
and are related to generic operations performed regularly by all agents. All
61
+
metrics in this section are prefixed by `tfc-agent.`.
0 commit comments