Prometheus integration - maping matrics and services - endpoint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
skyline apiserver |
Fix Released
|
Undecided
|
xusongfu |
Bug Description
Hi all
i cant find any info how to setup all promehteus monitoring servies.
What i find and succefully mange to do is:
Hope this info will save some time to otheres :)
1. You need to install prometheus and then some srvices
2. Openstack Exporter - ttps://
3. mysqld_exporter - https:/
4. rabbitmq-plugins enable rabbitmq_prometheus - https:/
5. memcached_exporter - https:/
6. openstack_
7. Get Gnocchi and Telemetry Service (Ceilometer) working for example https:/
8. Install Prometheus Pushgateway - https:/
9. Send mertics to ptomehtrus form ceilometer https:/
-------
What is working fine till now and what not
Other Services get all info about MySQL Memcache - RabbitMQ. !!!
OpenStack Services - nova-scheduler Current StatusLast 24H Status - all sow fine
Storage Clusters - Storage Cluster Status - Healthy - but its 0 ?
Physical Nodes show only few info -
CPU Cores
16
Total Ram
78.45GiB
System Running Time
8.37 min
File System Free Space
/dev/mapper/
75.89 GiB / 97.87 GiB
77.543%
/dev/sda2/boot
1.66 GiB / 1.90 GiB
Missing - empty
CPU Usage(%)
Memory Usage
DISK IOPS
DISK Usage(%)
and i still cant get Monitor tab in instance to see cpu and memory resources
What am i missing or what i nee to setup, map or enable to get it right.
Below my prometheus confi
global:
scrape_interval: 15s
scrape_timeout: 13s
evaluation_
external_labels:
monitor: example
alerting:
alertmanagers:
- follow_redirects: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets:
- localhost:9093
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: https
basic_auth:
username: admin
password: <secret>
tls_config:
cert_file: /etc/prometheus
key_file: /etc/prometheus
insecure_
follow_redirects: true
static_configs:
- targets:
- localhost:9090
- job_name: openstack_
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: http
follow_redirects: true
relabel_configs:
- separator: ;
regex: __meta_
replacement: $1
action: labelmap
openstack_
- identity_endpoint: https:/
username: admin
userid: ""
password: <secret>
project_name: admin
project_id: ""
domain_name: default
domain_id: ""
application
application
application
role: hypervisor
region: RegionOne
refresh_
port: 9100
availability: public
- job_name: openstack_instances
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: http
follow_redirects: true
relabel_configs:
- source_labels: [__meta_
separator: ;
regex: (.*)
target_label: __address__
replacement: $1:9100
action: replace
- separator: ;
regex: __meta_
replacement: $1
action: labelmap
openstack_
- identity_endpoint: https:/
username: admin
userid: ""
password: <secret>
project_name: admin
project_id: ""
domain_name: default
domain_id: ""
application
application
application
role: instance
region: RegionOne
refresh_
port: 80
availability: public
- job_name: mysql
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- xxxxxh:9104
- job_name: Pushgateway
honor_labels: true
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: http
follow_redirects: true
relabel_configs:
- separator: ;
regex: __meta_
replacement: $1
action: labelmap
static_configs:
- targets:
- localhost:9091
- job_name: memcached
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- xxxxx:9150
- job_name: rabbitmq_exporter
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- pxxxx:15692
- job_name: openstack_exporter
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 13s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- xxxxxh:9180
Changed in skyline-apiserver: | |
assignee: | nobody → wang.chen (wangchen1) |
Changed in skyline-apiserver: | |
assignee: | Jingwei Zhang (iceboal) → xusongfu (xusongfu) |
Hello,The configuration items that need to be modified to connect skyline to prometheus are as follows.The file address is /etc/skyline/ skyline. yaml.
default: basic_auth_ password: '' basic_auth_ user: '' enable_ basic_auth: false endpoint: http:// localhost: 9091
prometheus_
prometheus_
prometheus_
prometheus_