Prometheus监控OpenStack

2020-06-12 22:28:09 浏览数 (3)

安装 docker

代码语言:javascript复制
Latest Docker master images:
docker pull quay.io/niedbalski/openstack-exporter-linux-amd64:master
docker pull quay.io/niedbalski/openstack-exporter-linux-arm64:master

Latest Docker release images:
docker pull quay.io/niedbalski/openstack-exporter-linux-amd64:v0.9.0
docker pull quay.io/niedbalski/openstack-exporter-linux-arm64:v0.9.0

二进制

代码语言:javascript复制
https://github.com/openstack-exporter/openstack-exporter/releases

命令

代码语言:javascript复制
sage: openstack-exporter [<flags>] <cloud>

Flags:
  -h, --help                     Show context-sensitive help (also try --help-long and --help-man).
      --web.listen-address=":9180"  
                                 address:port to listen on
      --web.telemetry-path="/metrics"  
                                 uri path to expose metrics
      --os-client-config="/etc/openstack/clouds.yaml"  
                                 Path to the cloud configuration file
      --prefix="openstack"       Prefix for metrics
      --endpoint-type="public"   openstack endpoint type to use (i.e: public, internal, admin)
  -d, --disable-metric= ...      multiple --disable-metric can be specified in the format: service-metric (i.e: cinder-snapshots)
      --disable-service.network  Disable the network service exporter
      --disable-service.compute  Disable the compute service exporter
      --disable-service.image    Disable the image service exporter
      --disable-service.volume   Disable the volume service exporter
      --disable-service.identity  
                                 Disable the identity service exporter

Args:
  <cloud>  name or id of the cloud to gather metrics from

OpenStack configuration

代码语言:javascript复制
clouds:
 default:
   region_name: {{ openstack_region_name }}
   identity_api_version: 3
   identity_interface: internal
   auth:
     username: {{ keystone_admin_user }}
     password: {{ keystone_admin_password }}
     project_name: {{ keystone_admin_project }}
     project_domain_name: 'Default'
     user_domain_name: 'Default'
     auth_url: {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v3

对接grafana https://grafana.com/grafana/dashboards/9701

0 人点赞