Skip to content

Commit

Permalink
Add scrape configs for portprober
Browse files Browse the repository at this point in the history
* bump openstack-controller
* update scrape configuration for prometheus to
  collect portprober metrics

Related-Prod: PRODX-40738
Change-Id: I0baab5539fa7e3ce47a7920fdd4f1ca3f1f8c7d9
  • Loading branch information
jumpojoy committed Mar 12, 2024
1 parent 9a2c86d commit 570f42f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
4 changes: 2 additions & 2 deletions release/70-openstack-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
- name: openstack-operator
chart: openstack-controller/openstack-operator
helmV3: true
version: 0.15.10
version: 0.16.0
namespace: osh-system
values:
global:
Expand All @@ -20,7 +20,7 @@ spec:
podNetworks:
- cidr: 192.168.0.0/16
image:
tag: 0.15.10
tag: 0.16.0
# The kopf peering object will be created by ceph controller.
kopf:
enabled: false
29 changes: 28 additions & 1 deletion release/ci/25-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,33 @@ spec:
scheme: http
scrape_interval: 15s
scrape_timeout: 10s
openstack-neutron-portprober:
honor_timestamps: true
kubernetes_sd_configs:
- namespaces:
names:
- openstack
role: endpoints
metric_relabel_configs:
- action: labeldrop
regex: node
- action: keep
regex: portprober_arping_target_total|portprober_arping_target_success|portprober_arping_target_failure
source_labels:
- __name__
metrics_path: /
relabel_configs:
- action: keep
regex: neutron-portprober-exporter;qpp-exporter
source_labels:
- __meta_kubernetes_service_name
- __meta_kubernetes_endpoint_port_name
- source_labels:
- __meta_kubernetes_pod_node_name
target_label: node
scheme: http
scrape_interval: 15s
scrape_timeout: 10s
# Deploy grafana together with prometheus, to make the same setup
# as used on bm environments to measure workload downtimes. Grafana
# is deployed without dashboards to decrease memory usage (sidecar
Expand Down Expand Up @@ -202,4 +229,4 @@ spec:
prometheus:
isDefault: true
type: prometheus
url: http://prometheus-server
url: http://prometheus-server

0 comments on commit 570f42f

Please sign in to comment.