Skip to content

efaure/openshift_prometheus_collector_java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenShift cluster prometheus exporter

Prometheus exporter written to collect metrics on OpenShift objects.

This exporter is intended to be used as a complement of kube-state-metrics.

Kube-state-metrics (https://github.com/kubernetes/kube-state-metrics.git) is a Prometheus exporter which collect data on all Kubernetes object.

Job metrics

Metric name Metric type Labels/tags
openshift_deployment_configuration_spec_replicas Gauge deployment_configuration_name, namespace
openshift_deployment_configuration_status_readyReplicas Gauge deployment_configuration_name, namespace
openshift_deployment_configuration_status_replicas Gauge deployment_configuration_name, namespace
openshift_deployment_configuration_status_unavailableReplicas Gauge deployment_configuration_name, namespace

Paramters

IT is possible to define connection information and proxy parameters by using environement var.

Parameters Description Default Value
OCP_MASTER_URL API master URL https://kubernetes.default.svc.cluster.local
OCP_USERNAME Username to authenticate to master API in case of login password authentication -
OCP_PASSWORD Password to authenticate to master API in case of login password authentication -
OCP_TOKEN Token string value to authenticate to master API with token -
OCP_TOKEN_PATH Path to a file containing token to authenticate to master API -
OCP_CA_PATH Path to a CA certificate to authenticate to master API -
OCP_HTTP_PROXY Http proxy -
OCP_HTTPS_PROXY Https proxy -

About

A prometheus collector to export data specific to openshift api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages