Skip to content

Commit 9725149

Browse files
committed
Generate constants for metric definitions
1 parent 9617c62 commit 9725149

32 files changed

+4737
-1
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{%- set my_class_name = ctx.root_namespace | pascal_case ~ "IncubatingMetrics" -%}
2+
3+
/*
4+
* Copyright The OpenTelemetry Authors
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
package io.opentelemetry.semconv.incubating;
8+
9+
// DO NOT EDIT, this is an Auto-generated file from buildscripts/templates/registry/incubating_java/IncubatingSemanticMetrics.java.j2
10+
@SuppressWarnings("unused")
11+
public final class {{ my_class_name }} {
12+
{%- for metric in ctx.metrics -%}
13+
{%- if metric is experimental -%}
14+
{%- if metric is deprecated -%}
15+
{%- set deprecated_javadoc = "@deprecated " ~ metric.deprecated.note -%}
16+
{%- else -%}
17+
{%- set deprecated_javadoc = "" -%}
18+
{%- endif %}
19+
20+
/** Name of the {@code {{ metric.metric_name }}} metric. */
21+
{%- if metric is deprecated %}
22+
@Deprecated
23+
{%- endif %}
24+
public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_NAME = "{{ metric.metric_name }}";
25+
26+
/** Unit of the {@code {{ metric.metric_name }}} metric. */
27+
{%- if metric is deprecated %}
28+
@Deprecated
29+
{%- endif %}
30+
public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_UNIT = "{{ metric.unit }}";
31+
32+
/** Description of the {@code {{ metric.metric_name }}} metric. */
33+
{%- if metric is deprecated %}
34+
@Deprecated
35+
{%- endif %}
36+
public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_DESCRIPTION = "{{ metric.brief | replace('\n', ' ') | replace('"', '\\"') }}";
37+
{%- elif metric is stable -%}
38+
{%- set stable_class_name = ctx.root_namespace | pascal_case ~ "Metrics" -%}
39+
{%- set stable_class_link = "io.opentelemetry.semconv." ~ stable_class_name ~ "#" ~ (metric.metric_name | replace(".", "_") | screaming_snake_case) -%}
40+
41+
/**
42+
* Name for the {@code {{ metric.metric_name }}} metric.
43+
*
44+
* @deprecated deprecated in favor of stable {@link {{ stable_class_link }}} constant.
45+
*/
46+
@Deprecated public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }} = "{{ metric.metric_name }}";
47+
48+
/**
49+
* Unit for the {@code {{ metric.metric_name }}} metric.
50+
*
51+
* @deprecated deprecated in favor of stable {@link {{ stable_class_link }}_UNIT} constant.
52+
*/
53+
@Deprecated public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_UNIT = "{{ metric.unit }}";
54+
55+
/**
56+
* Description for the {@code {{ metric.metric_name }}} metric.
57+
*
58+
* @deprecated deprecated in favor of stable {@link {{ stable_class_link }}_DESCRIPTION} constant.
59+
*/
60+
@Deprecated public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_DESCRIPTION = "{{ metric.brief | replace('\n', ' ') | replace('"', '\\"') }}";
61+
{%- endif -%}
62+
{%- endfor %}
63+
64+
private {{ my_class_name }}() {}
65+
}

buildscripts/templates/registry/incubating_java/weaver.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ templates:
2727
})
2828
application_mode: each
2929
file_name: "{{ctx.root_namespace | pascal_case}}IncubatingAttributes.java"
30+
- pattern: IncubatingSemanticMetrics.java.j2
31+
filter: >
32+
semconv_grouped_metrics({
33+
"exclude_root_namespace": $excluded_namespaces,
34+
"exclude_stability": []
35+
}) | map({
36+
root_namespace: .root_namespace,
37+
metrics: .metrics
38+
})
39+
application_mode: each
40+
file_name: "{{ctx.root_namespace | pascal_case}}IncubatingMetrics.java"
3041
text_maps:
3142
java_enum_type:
3243
int: long
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{%- set my_class_name = ctx.root_namespace | pascal_case ~ "Metrics" -%}
2+
3+
/*
4+
* Copyright The OpenTelemetry Authors
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
package io.opentelemetry.semconv;
8+
9+
// DO NOT EDIT, this is an Auto-generated file from buildscripts/templates/registry/java/SemanticMetrics.java.j2
10+
@SuppressWarnings("unused")
11+
public final class {{ my_class_name }} {
12+
{%- for metric in ctx.metrics -%}
13+
{%- if metric is stable -%}
14+
{%- if metric is deprecated -%}
15+
{%- set deprecated_javadoc = "@deprecated " ~ metric.deprecated.note -%}
16+
{%- endif %}
17+
18+
/** Name of the {@code {{ metric.metric_name }}} metric. */
19+
{%- if metric is deprecated %}
20+
@Deprecated
21+
{%- endif %}
22+
public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_NAME = "{{ metric.metric_name }}";
23+
24+
/** Unit of the {@code {{ metric.metric_name }}} metric. */
25+
{%- if metric is deprecated %}
26+
@Deprecated
27+
{%- endif %}
28+
public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_UNIT = "{{ metric.unit }}";
29+
30+
/** Description of the {@code {{ metric.metric_name }}} metric. */
31+
{%- if metric is deprecated %}
32+
@Deprecated
33+
{%- endif %}
34+
public static final String {{ metric.metric_name | replace(".", "_") | screaming_snake_case }}_DESCRIPTION = "{{ metric.brief | replace('\n', ' ') | replace('"', '\\"') }}";
35+
{%- endif -%}
36+
{%- endfor %}
37+
38+
private {{ my_class_name }}() {}
39+
}

buildscripts/templates/registry/java/weaver.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ templates:
2929
})
3030
application_mode: each
3131
file_name: "{{ctx.root_namespace | pascal_case}}Attributes.java"
32+
- pattern: SemanticMetrics.java.j2
33+
filter: >
34+
semconv_grouped_metrics({
35+
"exclude_root_namespace": $excluded_namespaces,
36+
"exclude_stability": ["experimental", "deprecated"]
37+
}) | map({
38+
root_namespace: .root_namespace,
39+
metrics: .metrics
40+
})
41+
application_mode: each
42+
file_name: "{{ctx.root_namespace | pascal_case}}Metrics.java"
3243
text_maps:
3344
java_enum_type:
3445
int: long
Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,82 @@
11
Comparing source compatibility of opentelemetry-semconv-1.37.0-SNAPSHOT.jar against opentelemetry-semconv-1.37.0.jar
2-
No changes.
2+
+++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.DbMetrics (not serializable)
3+
+++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
4+
+++ NEW SUPERCLASS: java.lang.Object
5+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String DB_CLIENT_OPERATION_DURATION
6+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String DB_CLIENT_OPERATION_DURATION_UNIT
7+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String DB_CLIENT_OPERATION_DURATION_DESCRIPTION
8+
+++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.HttpMetrics (not serializable)
9+
+++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
10+
+++ NEW SUPERCLASS: java.lang.Object
11+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HTTP_SERVER_REQUEST_DURATION_DESCRIPTION
12+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HTTP_CLIENT_REQUEST_DURATION
13+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HTTP_SERVER_REQUEST_DURATION_UNIT
14+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HTTP_CLIENT_REQUEST_DURATION_DESCRIPTION
15+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HTTP_CLIENT_REQUEST_DURATION_UNIT
16+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String HTTP_SERVER_REQUEST_DURATION
17+
+++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.JvmMetrics (not serializable)
18+
+++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
19+
+++ NEW SUPERCLASS: java.lang.Object
20+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_UNLOADED_DESCRIPTION
21+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_USED_AFTER_LAST_GC_UNIT
22+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_GC_DURATION_DESCRIPTION
23+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_LOADED
24+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_LOADED_DESCRIPTION
25+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_LIMIT
26+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_USED
27+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_UNLOADED_UNIT
28+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_RECENT_UTILIZATION_UNIT
29+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_USED_AFTER_LAST_GC_DESCRIPTION
30+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_LIMIT_DESCRIPTION
31+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_TIME
32+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_THREAD_COUNT_DESCRIPTION
33+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_LOADED_UNIT
34+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_GC_DURATION
35+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_UNLOADED
36+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_COUNT_DESCRIPTION
37+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_COMMITTED
38+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_COUNT_UNIT
39+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_COUNT_DESCRIPTION
40+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_GC_DURATION_UNIT
41+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_USED_AFTER_LAST_GC
42+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_TIME_DESCRIPTION
43+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_COMMITTED_UNIT
44+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CLASS_COUNT
45+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_RECENT_UTILIZATION
46+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_TIME_UNIT
47+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_COMMITTED_DESCRIPTION
48+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_COUNT_UNIT
49+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_USED_UNIT
50+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_RECENT_UTILIZATION_DESCRIPTION
51+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_THREAD_COUNT
52+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_CPU_COUNT
53+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_USED_DESCRIPTION
54+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_THREAD_COUNT_UNIT
55+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String JVM_MEMORY_LIMIT_UNIT
56+
+++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.semconv.KestrelMetrics (not serializable)
57+
+++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
58+
+++ NEW SUPERCLASS: java.lang.Object
59+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_ACTIVE_TLS_HANDSHAKES_UNIT
60+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_UPGRADED_CONNECTIONS_UNIT
61+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_ACTIVE_CONNECTIONS_DESCRIPTION
62+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_QUEUED_CONNECTIONS
63+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_ACTIVE_TLS_HANDSHAKES
64+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_ACTIVE_TLS_HANDSHAKES_DESCRIPTION
65+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_ACTIVE_CONNECTIONS
66+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_QUEUED_CONNECTIONS_DESCRIPTION
67+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_REJECTED_CONNECTIONS
68+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_UPGRADED_CONNECTIONS_DESCRIPTION
69+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_QUEUED_REQUESTS_UNIT
70+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_QUEUED_CONNECTIONS_UNIT
71+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_TLS_HANDSHAKE_DURATION_UNIT
72+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_REJECTED_CONNECTIONS_UNIT
73+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_TLS_HANDSHAKE_DURATION
74+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_CONNECTION_DURATION_DESCRIPTION
75+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_QUEUED_REQUESTS
76+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_CONNECTION_DURATION
77+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_CONNECTION_DURATION_UNIT
78+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_UPGRADED_CONNECTIONS
79+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_QUEUED_REQUESTS_DESCRIPTION
80+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_TLS_HANDSHAKE_DURATION_DESCRIPTION
81+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_ACTIVE_CONNECTIONS_UNIT
82+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KESTREL_REJECTED_CONNECTIONS_DESCRIPTION
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.semconv.incubating;
7+
8+
// DO NOT EDIT, this is an Auto-generated file from
9+
// buildscripts/templates/registry/incubating_java/IncubatingSemanticMetrics.java.j2
10+
@SuppressWarnings("unused")
11+
public final class AzureIncubatingMetrics {
12+
13+
/** Name of the {@code azure.cosmosdb.client.active_instance.count} metric. */
14+
public static final String AZURE_COSMOSDB_CLIENT_ACTIVE_INSTANCE_COUNT_NAME =
15+
"azure.cosmosdb.client.active_instance.count";
16+
17+
/** Unit of the {@code azure.cosmosdb.client.active_instance.count} metric. */
18+
public static final String AZURE_COSMOSDB_CLIENT_ACTIVE_INSTANCE_COUNT_UNIT = "{instance}";
19+
20+
/** Description of the {@code azure.cosmosdb.client.active_instance.count} metric. */
21+
public static final String AZURE_COSMOSDB_CLIENT_ACTIVE_INSTANCE_COUNT_DESCRIPTION =
22+
"Number of active client instances.";
23+
24+
/** Name of the {@code azure.cosmosdb.client.operation.request_charge} metric. */
25+
public static final String AZURE_COSMOSDB_CLIENT_OPERATION_REQUEST_CHARGE_NAME =
26+
"azure.cosmosdb.client.operation.request_charge";
27+
28+
/** Unit of the {@code azure.cosmosdb.client.operation.request_charge} metric. */
29+
public static final String AZURE_COSMOSDB_CLIENT_OPERATION_REQUEST_CHARGE_UNIT = "{request_unit}";
30+
31+
/** Description of the {@code azure.cosmosdb.client.operation.request_charge} metric. */
32+
public static final String AZURE_COSMOSDB_CLIENT_OPERATION_REQUEST_CHARGE_DESCRIPTION =
33+
"[Request units](https://learn.microsoft.com/azure/cosmos-db/request-units) consumed by the operation.";
34+
35+
private AzureIncubatingMetrics() {}
36+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.semconv.incubating;
7+
8+
// DO NOT EDIT, this is an Auto-generated file from
9+
// buildscripts/templates/registry/incubating_java/IncubatingSemanticMetrics.java.j2
10+
@SuppressWarnings("unused")
11+
public final class CicdIncubatingMetrics {
12+
13+
/** Name of the {@code cicd.pipeline.run.active} metric. */
14+
public static final String CICD_PIPELINE_RUN_ACTIVE_NAME = "cicd.pipeline.run.active";
15+
16+
/** Unit of the {@code cicd.pipeline.run.active} metric. */
17+
public static final String CICD_PIPELINE_RUN_ACTIVE_UNIT = "{run}";
18+
19+
/** Description of the {@code cicd.pipeline.run.active} metric. */
20+
public static final String CICD_PIPELINE_RUN_ACTIVE_DESCRIPTION =
21+
"The number of pipeline runs currently active in the system by state.";
22+
23+
/** Name of the {@code cicd.pipeline.run.duration} metric. */
24+
public static final String CICD_PIPELINE_RUN_DURATION_NAME = "cicd.pipeline.run.duration";
25+
26+
/** Unit of the {@code cicd.pipeline.run.duration} metric. */
27+
public static final String CICD_PIPELINE_RUN_DURATION_UNIT = "s";
28+
29+
/** Description of the {@code cicd.pipeline.run.duration} metric. */
30+
public static final String CICD_PIPELINE_RUN_DURATION_DESCRIPTION =
31+
"Duration of a pipeline run grouped by pipeline, state and result.";
32+
33+
/** Name of the {@code cicd.pipeline.run.errors} metric. */
34+
public static final String CICD_PIPELINE_RUN_ERRORS_NAME = "cicd.pipeline.run.errors";
35+
36+
/** Unit of the {@code cicd.pipeline.run.errors} metric. */
37+
public static final String CICD_PIPELINE_RUN_ERRORS_UNIT = "{error}";
38+
39+
/** Description of the {@code cicd.pipeline.run.errors} metric. */
40+
public static final String CICD_PIPELINE_RUN_ERRORS_DESCRIPTION =
41+
"The number of errors encountered in pipeline runs (eg. compile, test failures).";
42+
43+
/** Name of the {@code cicd.system.errors} metric. */
44+
public static final String CICD_SYSTEM_ERRORS_NAME = "cicd.system.errors";
45+
46+
/** Unit of the {@code cicd.system.errors} metric. */
47+
public static final String CICD_SYSTEM_ERRORS_UNIT = "{error}";
48+
49+
/** Description of the {@code cicd.system.errors} metric. */
50+
public static final String CICD_SYSTEM_ERRORS_DESCRIPTION =
51+
"The number of errors in a component of the CICD system (eg. controller, scheduler, agent).";
52+
53+
/** Name of the {@code cicd.worker.count} metric. */
54+
public static final String CICD_WORKER_COUNT_NAME = "cicd.worker.count";
55+
56+
/** Unit of the {@code cicd.worker.count} metric. */
57+
public static final String CICD_WORKER_COUNT_UNIT = "{count}";
58+
59+
/** Description of the {@code cicd.worker.count} metric. */
60+
public static final String CICD_WORKER_COUNT_DESCRIPTION =
61+
"The number of workers on the CICD system by state.";
62+
63+
private CicdIncubatingMetrics() {}
64+
}

0 commit comments

Comments
 (0)