k8sclusterreceiver.json•2.55 kB
{
"fields": [
{
"name": "CollectionInterval",
"type": "time.Duration",
"description": "Collection interval for metrics.",
"required": true,
"mapstructureTag": "collection_interval"
},
{
"name": "NodeConditionTypesToReport",
"type": "[]string",
"description": "Node condition types to report. See all condition types, see here: https://kubernetes.io/docs/concepts/architecture/nodes/#condition.",
"required": true,
"mapstructureTag": "node_conditions_to_report"
},
{
"name": "AllocatableTypesToReport",
"type": "[]string",
"description": "Allocate resource types to report. See all resource types, see here: https://kubernetes.io/docs/concepts/architecture/nodes/#capacity",
"required": true,
"mapstructureTag": "allocatable_types_to_report"
},
{
"name": "MetadataExporters",
"type": "[]string",
"description": "List of exporters to which metadata from this receiver should be forwarded to.",
"required": true,
"mapstructureTag": "metadata_exporters"
},
{
"name": "Distribution",
"type": "string",
"description": "Whether OpenShift support should be enabled or not.",
"required": true,
"mapstructureTag": "distribution"
},
{
"name": "MetadataCollectionInterval",
"type": "time.Duration",
"description": "Collection interval for metadata. Metadata of the particular entity in the cluster is collected when the entity changes. In addition metadata of all entities is collected periodically even if no changes happen. Setting the duration to 0 will disable periodic collection (however will not impact metadata collection on changes).",
"required": true,
"mapstructureTag": "metadata_collection_interval"
},
{
"name": "Namespace",
"type": "string",
"description": "Namespace to fetch resources from. If this is set, certain cluster-wide resources such as Nodes or Namespaces will not be able to be observed. Setting this option is recommended in environments where due to security restrictions the collector cannot be granted cluster-wide permissions.",
"required": true,
"mapstructureTag": "namespace"
}
],
"imports": [
"fmt",
"time",
"github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig",
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/metadata"
],
"packageName": "k8sclusterreceiver"
}