nomad-node-state-exporter

command module
v0.0.0-...-385a6a4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Nomad node state exporter

Prometheus exporter for Nomad nodes

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

# HELP nomad_node_busy_status The busy status of a nomad node 0:IDLE 1:BUSY
# TYPE nomad_node_busy_status gauge
nomad_node_busy_status{Datacenter="DC1",computerName="BLDXXXX",nodeClass="Staging"} 0
# HELP nomad_node_exporter_failure The number of failure to get/parse api data since startup
# TYPE nomad_node_exporter_failure counter
nomad_node_exporter_failure 0
# HELP nomad_node_maintenance_status The maintenance status of a nomad node 0:ONLINE 1:MAINTENANCE 2:OFFLINE
# TYPE nomad_node_maintenance_status gauge
nomad_node_maintenance_status{Datacenter="DC1",computerName="BLDXXXX",nodeClass="Staging"} 0

Available options:

Generate prometheus metrics for nomad nodes states

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

Flags:
  -a, --address string            address of the nomad server api (default "https://my-nomad-server:4646")
      --ca string                 Trusting CA certificate for TLS auth (default "/nomad-pki/nomad-ca.pem")
      --cert string               Certificate used for TLS auth (default "/nomad-pki/cli.pem")
      --disable-authentication    disable authentication
      --fetch-interval duration   fetch-interval in seconds (default 30s)
  -f, --filter string             Nomad format expression filter for allocations endpoint. example: Name contains "jenkins"
  -h, --help                      help for nomad-node-state-exporter
      --key string                Certificate KEY used for TLS auth (default "/nomad-pki/cli-key.pem")
      --port int                  port to listen on (default 9827)

Documentation

Overview

Copyright © 2022 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