habitat_exporter

command module
v0.0.0-...-2b6a61f Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

README

Habitat prometheus exporter

Queries a habitat supervisor and exports useful metrics from it.

Usage

./habitat_exporter

There are two optional flags:

  • -listen-address - Change the address and port the exporter listens on
  • -habitat-address - Change the address of the habitat supervisor that is queried.

Metrics

  • habitat_service_health - The health of each habitat service that is active. Because prometheus can only output numeric values, the metric values match the habitat health_check hook (and also nagios check) exit codes: 0 for OK, 1 for Warning, 2 for Critical, 3 for Unknown.
  • habitat_service_package_release - The package release number (e.g. 20180622123456) of the habitat package for each habitat service.

Building

go build

Documentation

Overview

Copyright 2018 Chef Software, Inc

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.

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.

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.

Jump to

Keyboard shortcuts

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