Skip to main content

Kubernetes File

The KubernetesFile config type is used to scrape configurations contained in your specified resource e.g Pod.

  kubernetesFile:
- selector:
namespace: demo
kind: Statefulset
name: postgresql
files:
- path:
- /var/lib/postgresql/data/pgdata/postgresql.conf
format: properties

Scraper

FieldDescriptionSchemeRequired
logLevelSpecify the level of logging.stringfalse
scheduleSpecify the interval to scrape in cron format. Defaults to every 60 minutes.stringfalse
fullSet to true to extract changes from scraped configurations. Defaults to false.boolfalse
retentionSettings for retaining changes, analysis and scraped itemsRetention
kubernetesFileSpecifies the list of Kubernetes File configurations to scrape.[]KubernetesFilefalse

KubernetesFile

FieldDescriptionSchemeRequired
idA static value or JSONPath expression to use as the ID for the resource.stringtrue
nameA static value or JSONPath expression to use as the Name for the resource. Default value is the id.stringfalse
itemsA JSONPath expression to use to extract individual items from the resourcestringfalse
typeA static value or JSONPath expression to use as the type for the resource.stringtrue
transformSpecify field to transform resultTransformfalse
formatFormat of config item, defaults to JSON, available options are JSONstringfalse
timestampFormatTimestampFormat is a Go time format string used to parse timestamps in createFields and DeletedFields. If not specified, the default is RFC3339.stringfalse
createFieldsCreateFields is a list of JSONPath expression used to identify the created time of the config. If multiple fields are specified, the first non-empty value will be used[]stringfalse
deleteFieldsDeleteFields is a JSONPath expression used to identify the deleted time of the config. If multiple fields are specified, the first non-empty value will be used[]stringfalse
selectorSpecify Kubernetes resource for configuration based on namespace, kind, name and more.ResourceSelectoryes
containerSet container namestring
filesSpecify path to file contained in Pod[]File

File

FieldDescriptionSchemeRequired
pathSet path to file contained in Pod[]string
formatSpecify format of filestring

ResourceSelector

FieldDescriptionSchemeRequired
namespaceSpecify Namespace for Kubernetes resourcestring
kindSpecify Kind of Kubernetes resourcestring
nameSpecify name of Kubernetes resourcestring
labelSelectorSpecify labels attached to Kubernetes resourcestring
fieldSelectorSpecify Kubernetes resource based on value of resource fields. e.g status.Phase=Runningstring