github.com/netdata/go.d.plugin@v0.58.1/modules/docker_engine/metrics.go (about)

     1  // SPDX-License-Identifier: GPL-3.0-or-later
     2  
     3  package docker_engine
     4  
     5  type metrics struct {
     6  	Container struct {
     7  		Actions struct {
     8  			Changes float64 `stm:"changes"`
     9  			Commit  float64 `stm:"commit"`
    10  			Create  float64 `stm:"create"`
    11  			Delete  float64 `stm:"delete"`
    12  			Start   float64 `stm:"start"`
    13  		} `stm:"actions"`
    14  		States *containerStates `stm:"states"`
    15  	} `stm:"container"`
    16  	Builder struct {
    17  		FailsByReason struct {
    18  			BuildCanceled                float64 `stm:"build_canceled"`
    19  			BuildTargetNotReachableError float64 `stm:"build_target_not_reachable_error"`
    20  			CommandNotSupportedError     float64 `stm:"command_not_supported_error"`
    21  			DockerfileEmptyError         float64 `stm:"dockerfile_empty_error"`
    22  			DockerfileSyntaxError        float64 `stm:"dockerfile_syntax_error"`
    23  			ErrorProcessingCommandsError float64 `stm:"error_processing_commands_error"`
    24  			MissingOnbuildArgumentsError float64 `stm:"missing_onbuild_arguments_error"`
    25  			UnknownInstructionError      float64 `stm:"unknown_instruction_error"`
    26  		} `stm:"fails"`
    27  	} `stm:"builder"`
    28  	HealthChecks struct {
    29  		Failed float64 `stm:"failed"`
    30  	} `stm:"health_checks"`
    31  	SwarmManager *swarmManager `stm:"swarm_manager"`
    32  }
    33  
    34  type containerStates struct {
    35  	Paused  float64 `stm:"paused"`
    36  	Running float64 `stm:"running"`
    37  	Stopped float64 `stm:"stopped"`
    38  }
    39  
    40  type swarmManager struct {
    41  	IsLeader float64 `stm:"leader"`
    42  	Configs  float64 `stm:"configs_total"`
    43  	Networks float64 `stm:"networks_total"`
    44  	Secrets  float64 `stm:"secrets_total"`
    45  	Services float64 `stm:"services_total"`
    46  	Nodes    struct {
    47  		Total    float64 `stm:"total"`
    48  		PerState struct {
    49  			Disconnected float64 `stm:"disconnected"`
    50  			Down         float64 `stm:"down"`
    51  			Ready        float64 `stm:"ready"`
    52  			Unknown      float64 `stm:"unknown"`
    53  		} `stm:"state"`
    54  	} `stm:"nodes"`
    55  	Tasks struct {
    56  		Total    float64 `stm:"total"`
    57  		PerState struct {
    58  			Accepted  float64 `stm:"accepted"`
    59  			Assigned  float64 `stm:"assigned"`
    60  			Complete  float64 `stm:"complete"`
    61  			Failed    float64 `stm:"failed"`
    62  			New       float64 `stm:"new"`
    63  			Orphaned  float64 `stm:"orphaned"`
    64  			Pending   float64 `stm:"pending"`
    65  			Preparing float64 `stm:"preparing"`
    66  			Ready     float64 `stm:"ready"`
    67  			Rejected  float64 `stm:"rejected"`
    68  			Remove    float64 `stm:"remove"`
    69  			Running   float64 `stm:"running"`
    70  			Shutdown  float64 `stm:"shutdown"`
    71  			Starting  float64 `stm:"starting"`
    72  		} `stm:"state"`
    73  	} `stm:"tasks"`
    74  }