SlideShare a Scribd company logo
confidential
Day 2 operations
OpenStack Meetup, Ottawa, Sep 26, 2017
confidential
Dirk Wallerstorfer
 Cloud Technology Strategist @ Dynatrace
 Tech enthusiast
 Husband
 Father
 Son
 Austrian (no kangaroos)
 Never seen “Sound of music”
 Yes, I own a lederhosn
 No, I don’t know how to yodel
@wall_dirk
dirk.wallerstorfer@dynatrace.com
confidential
confidential
Day 0 Day 1 Day 2 Day 3
confidential
confidential
confidential
NRPE (Nagios Remote Plugin Executor)
...
server_port=5666
nrpe_user=nrpe
allowed_hosts=10.0.0.10
...
/etc/nagios/nrpe.cfg
1
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.10
controller
compute1
compute2
confidential
NRPE (Nagios Remote Plugin Executor)
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.10
1
2
controller
compute1
compute2
Configuration
confidential
confidential
NRPE (Nagios Remote Plugin Executor)
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.10
1
2
controller
compute1
compute2
define host {
address 10.0.0.3
...
}
...
define service {
...
check_command nova-list
}
etc/servers/controller.cfg
...
define command{
command_name nova-list
command_line /usr/local/nagios/plugins/nova-list
}
etc/objects/commands.cfg
#!/bin/env bash
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL=http://10.0.0.3:5000/v2.0
export OS_TENANT_NAME=admin
data=$(openstack server list 2>&1)
rv=$?
if [ "$rv" != "0" ] ; then
echo $data
exit $rv
fi
echo "$data" | grep -v -e '--------' -e '| Status ' -e '^$' | wc -l
/usr/local/nagios/plugins/nova-list
confidentialhttps://github.com/rochaporto/dashing-openstack
confidential
Nagios
 Monitoring IT infrastructure – and more ...
 Monitoring static entities
 Possibility to monitor dynamically created VMs
 Modify code of nova-api to reconfigure nagios after creation of new VM
 Otherwise shutdown instance will be displayed as outage
 Image that contains Nagios plugins || CAPS scripts to install plugins
 Alternative: Nagios XI – Enterprise
 Nagios Log Server
 Great talk from Nagios world 2014: Monitoring OpenStack
 https://www.youtube.com/watch?v=1U5fo6aPS-k
confidential
confidential
Elastic
 Previously: ELK Stack
 Now: Elastic Stack
confidential
Elastic Stack
confidential
Elastic Stack
confidential
confidential
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.10
controller
compute1
compute2
1 Setup & Configure Elasticsearch
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html
2 Setup & Configure Kibana
https://www.elastic.co/guide/en/kibana/current/setup.html
server.port: 5601
server.host: "10.0.0.10”
elasticsearch.url: "http://10.0.0.10:9200"
...
/etc/kibana/kibana.yml
network.host: 10.0.0.10
http.port: 9200
...
/etc/elasticsearch/elasticsearch.yml
confidential
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.10
controller
compute1
compute2
3 Setup & Configure Filebeats
filebeat.prospectors:
- input_type: log
paths:
- /var/log/keystone/*.log*
- /var/log/httpd/keystone*.log*
tags:
- keystone
exclude_files:
- ".gz$”
...
output.elasticsearch:
hosts: ["10.0.0.10:9200"]
#username: "elastic"
#password: "changeme"
...
filebeat.modules:
- module: apache2
access:
var.paths: ["/var/log/httpd/*.log*"]
/etc/filebeat/filebeat.yml
confidential
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.10
controller
compute1
compute2
4 Setup & Configure Metricbeats
metricbeat.modules:
- module: system
metricsets:
- cpu
- load
- filesystem
- fsstat
- memory
- network
- process
enabled: true
period: 10s
processes: ['.*']
output.elasticsearch:
hosts: ["10.0.0.10:9200"]
#username: "elastic"
#password: "changeme"
/etc/metricbeat/metricbeat.yml
confidential
confidential
confidential
confidential
confidential
influxdbelasticsearch mysql
confidential
Monasca Agent
The Monasca Agent supports collecting metrics from a variety of sources as follows:
 System metrics
 Nagios plugins
 Statsd
 Host alive (icmp/ssh)
 Process checks (# instances, memory, io, threads)
 Http Endpoint checks
 Service checks (mysql, rabbitmq)
 OpenStack process metrics
The Agent is extensible through configuration of additional plugins, written in Python.
confidential
confidential
confidential
confidential
confidential
confidential
OpenStack Dynatrace Cloud
Dynatrace
Mission Control
OpenStack
Services
Nova,
Neutron,
Keystone,
...
Dynatrace cluster
Security Gateway
WebUI
Access to
OpenStack APIs
Server nodes
Tenant 1
9999
Tenant 2
9999
Tenant 3
9999
443 https
8443
443 https
confidential
Setup Dynatrace Security Gateway
# wget -O sgw.sh https://zzv94586.live.dynatrace.com/....
# /bin/sh swg.sh
1
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.10
controller
compute1
compute2
SGW
Setup Dynatrace OneAgents
# wget -O agent.sh https://zzv94586.live.dynatrace.com/....
# /bin/sh agent.sh
2
Configure Keystone endpoint3
confidential
confidential
Correlation
 Correlation is a statistical measure that indicates the extent to which two or more variables fluctuate
together.
confidential
Correlation doesn‘t imply causation
B Z
Host CPU > 90%Service response time
increases by 2 seconds
B X
Z
C
A W
D
Y
confidential
confidential
confidential
confidential
confidential
Resource capacity and utilization
OpenStack service availability/performance
Supporting services
Log analytics
Applications running on top
Dependencies
Correlation of metrics/events/data
Real user monitoring, UX affects $
PaaS
confidential
This is NOT a
REGULAR SIZE
application
environment!
B X
Z
C
A W
D
Y
confidential
confidential
confidential
Confidential, Dynatrace, LLC
Thanks for
having me!

More Related Content

PDF
Год в Github bugbounty, опыт участия
PDF
MQTTS mosquitto - cheat sheet -
PDF
RabbitMQ Server - cheat sheet -
PDF
install mosquitto-auth-plug - cheat sheet -
PDF
信息安全监控
PDF
PDF
GCC ARM nRF51 IoT SDK -cheat sheet-
PDF
How to twist a IPv6 over Bluetooth (6lowpan)
Год в Github bugbounty, опыт участия
MQTTS mosquitto - cheat sheet -
RabbitMQ Server - cheat sheet -
install mosquitto-auth-plug - cheat sheet -
信息安全监控
GCC ARM nRF51 IoT SDK -cheat sheet-
How to twist a IPv6 over Bluetooth (6lowpan)

What's hot (20)

PDF
Особенности фоновой работы iOS-приложения на примере синхронизации Яндекс.Ди...
PPTX
[FrontDays'2017] Леонид Блохин (Big Data Engineer): Мист. Сервис для работы с...
PDF
How to Install nRF51 IPv6 over Bluetooth using MDK-ARM+IoT SDK
PDF
Rdo mitaka
ODP
Fusker - A NodeJS Security Framework
PDF
Fire & Ice: Making and Breaking macOS Firewalls
ODP
Use build service API in your program
TXT
H0 w decrypt
PDF
Passive SSH, a Fast-Lookup Database of SSH Key Materials to Support Incident ...
ODP
S4 sig-check-lpc-20130918
PDF
Tecnicas monitoreo reportes con Asterisk
PPT
Intrusion Detection System using Snort
PDF
Snort
PDF
TechOYAJI 2014 tokyo summer LT; CentOS7 and RDO Icehouse OpenStack
PDF
15th Athens Big Data Meetup - 1st Talk - Running Spark On Mesos
PDF
[ElasticStack]What happens when you visualize servers exposed to the world?
PDF
Snort-IPS-Tutorial
PPTX
Intro to NSM with Security Onion - AusCERT
PDF
Install and Configure Ubuntu for Hadoop Installation for beginners
PPTX
Ansible ssh y comandos ad-hoc
Особенности фоновой работы iOS-приложения на примере синхронизации Яндекс.Ди...
[FrontDays'2017] Леонид Блохин (Big Data Engineer): Мист. Сервис для работы с...
How to Install nRF51 IPv6 over Bluetooth using MDK-ARM+IoT SDK
Rdo mitaka
Fusker - A NodeJS Security Framework
Fire & Ice: Making and Breaking macOS Firewalls
Use build service API in your program
H0 w decrypt
Passive SSH, a Fast-Lookup Database of SSH Key Materials to Support Incident ...
S4 sig-check-lpc-20130918
Tecnicas monitoreo reportes con Asterisk
Intrusion Detection System using Snort
Snort
TechOYAJI 2014 tokyo summer LT; CentOS7 and RDO Icehouse OpenStack
15th Athens Big Data Meetup - 1st Talk - Running Spark On Mesos
[ElasticStack]What happens when you visualize servers exposed to the world?
Snort-IPS-Tutorial
Intro to NSM with Security Onion - AusCERT
Install and Configure Ubuntu for Hadoop Installation for beginners
Ansible ssh y comandos ad-hoc
Ad

Similar to OpenStack Day 2 Operations (20)

PPTX
OpenStack Day 2 Operations (Toronto)
PDF
Log analysis with elastic stack
PDF
Null Bachaav - May 07 Attack Monitoring workshop.
PPTX
Static code analysis with sonar qube
PPTX
Why favour Icinga over Nagios - Rootconf 2015
PPSX
Linux configer
PDF
Elasticsearch sur Azure : Make sense of your (BIG) data !
PPTX
Securing Hadoop with OSSEC
PDF
Hacking the swisscom modem
PPTX
OpenStack hands-on (All-in-One)
PDF
Introduction to Apache NiFi 1.11.4
PDF
Issuing temporary credentials for my sql using hashicorp vault
PDF
Webinar: Automate IBM Connections Installations and more
PDF
Unlocked Nov 2013: Main Slide Pack
PDF
From zero to hero - Easy log centralization with Logstash and Elasticsearch
PDF
From Zero to Hero - Centralized Logging with Logstash & Elasticsearch
PDF
RDO-Packstack Workshop
DOCX
Install elasticsearch, logstash and kibana
PPTX
Introduction to InSpec and 1.0 release update
PDF
Oracle 11g R2 RAC setup on rhel 5.0
OpenStack Day 2 Operations (Toronto)
Log analysis with elastic stack
Null Bachaav - May 07 Attack Monitoring workshop.
Static code analysis with sonar qube
Why favour Icinga over Nagios - Rootconf 2015
Linux configer
Elasticsearch sur Azure : Make sense of your (BIG) data !
Securing Hadoop with OSSEC
Hacking the swisscom modem
OpenStack hands-on (All-in-One)
Introduction to Apache NiFi 1.11.4
Issuing temporary credentials for my sql using hashicorp vault
Webinar: Automate IBM Connections Installations and more
Unlocked Nov 2013: Main Slide Pack
From zero to hero - Easy log centralization with Logstash and Elasticsearch
From Zero to Hero - Centralized Logging with Logstash & Elasticsearch
RDO-Packstack Workshop
Install elasticsearch, logstash and kibana
Introduction to InSpec and 1.0 release update
Oracle 11g R2 RAC setup on rhel 5.0
Ad

More from Dirk Wallerstorfer (6)

PPTX
Moving beyond DevOps with automated cloud-native platforms
PPTX
OpenStack Maintenance - Find the Needle in the Haystack
PPTX
OpenStack Full Stack Monitoring and Troubleshooting
PPTX
Monitoring OpenStack? Piece of cake!
PPTX
How monitoring OpenStack can positively affect your sleeping habits and hairstyl
PPTX
DevOps Guide to Container Networking
Moving beyond DevOps with automated cloud-native platforms
OpenStack Maintenance - Find the Needle in the Haystack
OpenStack Full Stack Monitoring and Troubleshooting
Monitoring OpenStack? Piece of cake!
How monitoring OpenStack can positively affect your sleeping habits and hairstyl
DevOps Guide to Container Networking

Recently uploaded (20)

PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Getting Started with Data Integration: FME Form 101
PPTX
The various Industrial Revolutions .pptx
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
August Patch Tuesday
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Hybrid model detection and classification of lung cancer
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
STKI Israel Market Study 2025 version august
PPT
Geologic Time for studying geology for geologist
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Module 1.ppt Iot fundamentals and Architecture
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
CloudStack 4.21: First Look Webinar slides
Developing a website for English-speaking practice to English as a foreign la...
Getting started with AI Agents and Multi-Agent Systems
Getting Started with Data Integration: FME Form 101
The various Industrial Revolutions .pptx
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Enhancing emotion recognition model for a student engagement use case through...
Taming the Chaos: How to Turn Unstructured Data into Decisions
1 - Historical Antecedents, Social Consideration.pdf
August Patch Tuesday
DP Operators-handbook-extract for the Mautical Institute
Zenith AI: Advanced Artificial Intelligence
Hybrid model detection and classification of lung cancer
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
A novel scalable deep ensemble learning framework for big data classification...
STKI Israel Market Study 2025 version august
Geologic Time for studying geology for geologist

OpenStack Day 2 Operations

Editor's Notes

  • #5: OPTIMIZING MAINTENANCE AVAILABILITY COST OPTIMIZATION BILLING ENSURE IT MATCHES EXPECTATIONS
  • #6: monitoring IT infrastructure and more
  • #10: NRPE config @ controller Nagios config @ Nagios
  • #15: Beats are lightweight data shippers that you install as agents on your servers Beats have a small footprint and use fewer system resources than Logstash. Logstash provides a broad array of input, filter, and output plugins for collecting, enriching, and transforming data from a variety of sources. X-Pack: security, alerting (watcher), monitoring, reporting, graph, machine learning Cloud: hosted on AWS/GCP – scaling is easy, activate additional features on demand
  • #20: modules: apache2, nginx, mysql, syslog, ...
  • #22: configuration @ controller processes @ elastic
  • #26: Agents send data to APIs Read data through CLI or Grafana
  • #28: agent configuration in container for system metrics integration in Horizon, dashboards, and ‘graph metrics’
  • #36: not only correlation, also causal relation
  • #37: 相関関係は、原因を意味しません。
  • #38: Update of the Payment Service of one of the rookie developer that are convinced that you have to write everything on your own and reinvent the wheel on a daily basis. LET’S ASSUME YOU ARE MONITORING EVERYTHING ... in the most professional way, so you immediately notice any error or change in performance
  • #41: This is one of the things that can go wrong in OpenStack ... now I don’t to talk you out of doing OpenStack, on the contrary, I want to encourage you to think maintenance and operations from the beginning, and don’t just go with
  • #42: Putting it all together now. With large environments, manual introspection and correlation and log browsing won’t cut it anymore ... people don’t scale as well ...
  • #43: What do you need OpenStack for, if you 5 VMs with 8 services, and 2 applications.
  • #44: you need something that is easy to deploy, adaptable, and able to handle environments of that size