Skip to content

Commit

Permalink
Monitoring adding openstack exporter for resource metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
the2hill committed Feb 26, 2024
1 parent 518d3d4 commit 981c427
Show file tree
Hide file tree
Showing 12 changed files with 195 additions and 275 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "submodules/mariadb-operator"]
path = submodules/mariadb-operator
url = https://github.com/mariadb-operator/mariadb-operator
[submodule "submodules/openstack-exporter"]
path = submodules/openstack-exporter
url = https://github.com/openstack-exporter/helm-charts

This file was deleted.

12 changes: 12 additions & 0 deletions helm-configs/monitoring/openstack-metrics-exporter/clouds-yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
clouds.yaml: |
clouds:
default:
region_name: RegionOne
auth:
username: admin
password: <admin-password>
project_name: admin
project_domain_name: default
user_domain_name: default
auth_url: 'http://keystone-api.openstack.svc.cluster.local:5000/v3'

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
# Choose endpoint type (this will override the value of clouds.yaml)
endpoint_type: public
# Ignored when multicloud.enabled: true
cloud: default

replicaCount: 1

image:
repository: ghcr.io/openstack-exporter/openstack-exporter
tag: 1.7.0
pullPolicy: Always

serviceMonitor:
interval: 1m
scrapeTimeout: 30s

multicloud:
# Enable multicloud (i.e. /probe?... targets)
# Doc: https://github.com/openstack-exporter/openstack-exporter#description
enabled: false
# Monitor the exporter's internal metrics (i.e. /metrics)
selfmonitor: false
# List of clouds to scrape, and the services to scrape from them
clouds:
- name: default
services:
- volume
- image
- identity
- compute
- network
- placement
- load-balancer
- object-store
#- container-infra
#- dns
#- baremetal
- gnocchi
#- database
- orchestration

# - name: cloud1
# services:
# - volume
# - name: cloud2
# services:
# - volume
# - image
# - identity
# - compute
# - network
# - placement # NB this needs the openstack-exporter release > 1.4.0

# Add extra args to the exporter.
# Doc: https://github.com/openstack-exporter/openstack-exporter#command-line-options
#extraArgs:
# - --disable-service.baremetal
# - --disable-service.container-infra
# - --disable-service.object-store

# Add extra environment variables
# extraEnvs:
# "ENV_VAR": "value"

# Add extra labels
#commonLabels:
# prometheus.io/scrape: "true"
# prometheus.io/monitor: "true"

# Generate a secret for clouds.yaml
# Doc: https://github.com/openstack-exporter/openstack-exporter#openstack-configuration
clouds_yaml_config: |
clouds.yaml: |
clouds:
default:
region_name: RegionOne
auth:
username: admin
password: <admin-password>
project_name: admin
project_domain_name: default
user_domain_name: default
auth_url: 'http://keystone-api.openstack.svc.cluster.local:5000/v3'
# In case of multicloud.enabled
# cloud1:
# ...
# cloud2:
# ...
14 changes: 0 additions & 14 deletions kustomize/monitoring/openstack-exporter/aio/kustomization.yaml

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 11 additions & 0 deletions kustomize/monitoring/openstack-metrics-exporter/clouds-yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
clouds.yaml: |
clouds:
default:
region_name: RegionOne
auth:
username: your-user-here
password: your-password-here
project_name: your-project-here
project_domain_name: 'Default'
user_domain_name: 'Default'
auth_url: 'http://your-url-here:5000/v3'
Loading

0 comments on commit 981c427

Please sign in to comment.