jenkins-node-state-exporter

command module
v0.0.0-...-c55b768 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Jenkins node state exporter

Prometheus exporter for Jenkins nodes

This exporter listen on port 9723 and the endpoint is /metrics

# HELP jenkins_node_busy_status The busy status of a jenkins computer node 0:IDLE 1:BUSY
# TYPE jenkins_node_busy_status gauge
jenkins_node_busy_status{computerName="master",role="worker"} 0
jenkins_node_busy_status{computerName="node1",role="worker"} 0
# HELP jenkins_node_exporter_failure The number of faillure to get/parse api data
# TYPE jenkins_node_exporter_failure counter
jenkins_node_exporter_failure 0
# HELP jenkins_node_maintenance_status The maintenance status of a jenkins computer node 0:ONLINE 1:MAINTENANCE 2:OFFLINE
# TYPE jenkins_node_maintenance_status gauge
jenkins_node_maintenance_status{computerName="master",role="worker"} 0
jenkins_node_maintenance_status{computerName="node1",role="worker"} 2

Available options:

Usage:
  jenkins-node-state-exporter [flags]

Flags:
  -a, --address string            address of the jenkins server (default "http://localhost/jenkins")
      --disable-authentication    disable authentication
      --fetch-interval duration   fetch-interval in seconds (default 30s)
  -h, --help                      help for jenkins-node-state-exporter
  -r, --labelrole string          prefix of the label to parse a role associated with the node (default "role")
  -p, --password string           password of the jenkins user account (default "admin")
      --port int                  port to listen on (default 9827)
  -u, --username string           username of the jenkins user account (default "admin")

Documentation

Overview

Copyright © 2021 Loïc Yavercovski

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL