Giter VIP home page Giter VIP logo

ovirt_exporter's Introduction

ovirt_exporter's People

Contributors

czerwonk avatar dependabot[bot] avatar k0ste avatar simonpasquier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ovirt_exporter's Issues

Unattached storage domains are reported as up

The metric ovirt_storage_up reports a value of 1 if the storage domain in unattached. Would be great to have something similar to #11 to differentiate between a storage domain up/online (=1), down (=0), maintenance (=2) or unattached (=3).

As reference for the StorageDomainStatus see here. Not sure if the up metric should track and expose all the 'transition' states (e.g. activating) as well.

grafana dashbord

Hello.

Whats about grafana dashbord . Do you dashbord example ?

install fails due to dependency change of prometheus/common/log

go get -u github.com/czerwonk/ovirt_exporter

go: downloading github.com/czerwonk/ovirt_exporter v0.0.0-20210416134944-93c9b7128275
go: downloading github.com/czerwonk/ovirt_api v0.0.0-20180321161247-63e3f014686c
go: downloading github.com/pkg/errors v0.8.0
go: downloading github.com/prometheus/client_golang v0.9.4
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/prometheus/common v0.4.1
go: downloading github.com/prometheus/client_golang v1.11.0
go: downloading github.com/beorn7/perks v1.0.0
go: downloading github.com/prometheus/common v0.29.0
go: downloading github.com/golang/protobuf v1.3.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/procfs v0.0.2
go: downloading github.com/sirupsen/logrus v1.2.0
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading github.com/prometheus/procfs v0.7.0
go: downloading golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: downloading golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: downloading golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3
go: downloading github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: downloading golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/czerwonk/ovirt_api v0.0.0-20190114183432-31037b874427
go: downloading github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading google.golang.org/protobuf v1.26.0
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading google.golang.org/protobuf v1.27.1
github.com/czerwonk/ovirt_exporter imports
	github.com/prometheus/common/log: cannot find module providing package github.com/prometheus/common/log

github.com/prometheus/common/log: cannot find module providing package github.com/prometheus/common/log

Question about ovirt_exporter functionality

Hi,

Just need some clarification on the functionality of ovirt_exporter. Does this export metrics from the ovirt metrics store or directly from the ovirt engine ? If it's from ovirt engine, does it contain metrics about all hosts created in ovirt engine ? Apologies for creating this as issue, didn't see any other option to ask this question.

This is the reference for Ovirt metrics store: https://www.ovirt.org/develop/release-management/features/metrics/metrics-store-installation.html

Thanks,
Venu.

401 Unauthorized

Hi. I'm getting 401 Unauthorized with ovirt 4.3.5.4-1.el7.

User prometheus has ReadOnlyAdmin role assigned.

log:

$ ovirt_exporter -api.url https://<REDACTED>/ovirt-engine/api/ -api.username prometheus@internal -api.password <REDACTED> -debug
INFO[0000] Starting oVirt exporter (Version: 0.9.0)      source="main.go:74"
INFO[0000] Listening for /metrics on :9325               source="main.go:103"
ERRO[0002] 401 Unauthorized                              source="vm_collector.go:110"
ERRO[0002] 401 Unauthorized                              source="host_collector.go:85"
ERRO[0003] 401 Unauthorized                              source="vm_collector.go:110"
ERRO[0003] 401 Unauthorized                              source="storagedomain_collector.go:48"
ERRO[0003] 401 Unauthorized                              source="host_collector.go:85"

ovirt_vm_snapshot_min/max_age_minutes has a misleading label

While I was building Grafana dashboards using the prometheus metrics generated by this exporter, I came across an issue where I thought that both ovirt_vm_snapshot_min_age_minutes and ovirt_vm_snapshot_max_age_minutes were measured in minutes as indicated by the naming scheme. After some poking around in the ovirt manager, I later realized that they were actually measured in seconds.

Typically prometheus metrics similar to these are measured in seconds so there's no problems with that, so only the metric labels need to be updated.

I created a new pull request here that fixes the labels.

It is possible to collect Host Maintenance metric?

For example ovirt_host_maintenance
Currently impossible to determine host down (ovirt_host_up 0) or just on maintenance, for example for certificate enrollment

possible checks:

# host down
(ovirt_host_up == 0) and (ovirt_host_maintenance == 0)

# host on maintenance
(ovirt_host_up == 1) and (ovirt_host_maintenance == 1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.