prometheus监控openstack

安装

docker

1
2
3
4
5
6
7
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

二进制

1
https://github.com/openstack-exporter/openstack-exporter/releases

命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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

1
2
3
4
5
6
7
8
9
10
11
12
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

1
https://grafana.com/grafana/dashboards/9701

Donate