SlideShare ist ein Scribd-Unternehmen logo
1 von 33
Downloaden Sie, um offline zu lesen
Monitoring auf
Kubernetes
Verwende Prometheus um
deine Connections
Infrastruktur zu überwachen
Martin Schmidt
+49 162 2626401
martin.schmidt@skaylink.com
Martin Schmidt
• Senior IT Architect at Skaylink GmbH.
– IBM / HCL Connections since 2007
• Experience in
– Deployment, Migration, Operation and
Customization
– Kubernetes EKS and AWS, Container
• Focusing on
– enhancing with own containers
– make the most out of customizer
• More and more
– DevOps, Automation
14.06.2023 Aufbau einer HCL Connections Umgebung in der AWS Cloud
2
Inhalt
14.06.2023 Monitoring auf Kubernetes
3
1. Warum
2. Technologie Stack
3. Installation
4. Dashboards
• Prometheus ein Standard Monitoring Tool auf und für
Kubernetes
• Fertiges Helm Chart verfügbar
• Vielfältige Dokumentation
14.06.2023 Monitoring auf Kubernetes
4
Warum Prometheus?
• Grafana ein Standard Visualisierung Tool auch für
Prometheus
• Fertiges Helm Chart verfügbar
• Vielfältige Dokumentation
• Reichhaltiges Angebot an vorgefertigten Dashboards
14.06.2023 Monitoring auf Kubernetes
5
Warum Grafana?
Technologie Stack
14.06.2023 Monitoring auf Kubernetes
6
• Prometheus is an open-source systems monitoring and
alerting toolkit originally built at SoundCloud.
• Prometheus ist zuständig die Metriken zu sammeln und in
einer internen Datenstruktur abzulegen.
• Das sammeln der Daten erfolgt über einen einfachen HTTP
Request.
• Zu überwachende Zeile können über Autodiscovery
gefunden werden.
14.06.2023 Monitoring auf Kubernetes
7
Prometheus
Architektur
14.06.2023 Monitoring auf Kubernetes
8
• Quelle: https://github.com/prometheus-
community/helm-charts/tree/main/charts/kube-
prometheus-stack
• helm repo add prometheus-community
https://prometheus-community.github.io/helm-
charts
• helm install [RELEASE_NAME] prometheus-
community/kube-prometheus-stack
• Per default werden auch kube-state-metics, prometheus-
node-exporter und grafana installiert.
14.06.2023 Monitoring auf Kubernetes
9
Installation
• Das Prometheus Dashboard wird nicht über einen
Ingress Controller veröffentlicht.
• kubectl port-forward -n monitoring
pod/prometheus-kube-prometheus-stack-
prometheus-0 9090:9090
• Dann Browser: http://localhost:9090
14.06.2023 Monitoring auf Kubernetes
10
Zugriff auf das Prometheus
Dashboard
Prometheus UI
14.06.2023 Monitoring auf Kubernetes
11
Prometheus UI
14.06.2023 Monitoring auf Kubernetes
12
• Loki is a horizontally scalable, highly available, multi-tenant
log aggregation system inspired by Prometheus. It is
designed to be very cost effective and easy to operate. It
does not index the contents of the logs, but rather a set of
labels for each log stream.
• Loki indiziert log Dateien und speichert sie als stark
komprimierte Objekte in S3, GCS oder lokal.
• Damit sind Alerts und Auswertungen der Log Dateien der
Pods möglich.
14.06.2023 Monitoring auf Kubernetes
13
Grafana Loki
Komponenten
14.06.2023 Monitoring auf Kubernetes
14
• Theoretisch können die WebSphere SystemOut bzw.
SystemErr logs auch mit Loki indiziert und gespeichert
werden.
• Bisher nicht getestet.
14.06.2023 Monitoring auf Kubernetes
15
Grafana Loki - WebSphere
• Quelle: https://github.com/grafana/helm-
charts/blob/main/charts/loki-
stack/README.md
• helm repo add grafana
https://grafana.github.io/helm-charts
• helm install loki grafana/loki-stack
14.06.2023 Monitoring auf Kubernetes
16
Installation
loki grafana/loki-stack
• Open source, highly available Prometheus setup with
long term storage capabilities.
• Hier als Langzeitspeicher der Prometheus Daten
verwendet.
14.06.2023 Monitoring auf Kubernetes
17
Thanos
Architektur
14.06.2023 Monitoring auf Kubernetes
18
• Query, visualize, alert on, and understand your data no
matter where it’s stored. With Grafana you can create,
explore, and share all of your data through beautiful,
flexible dashboards.
• Visualisierung und Alerting der durch Prometheus
gesammelten Daten.
• Wird im Prometheus Stack mit installiert.
14.06.2023 Monitoring auf Kubernetes
19
Grafana
Example Dashboard
14.06.2023 Monitoring auf Kubernetes
20
• Über den Prometheus Node Exporter
• Verfügbar als Binary
• Installation Linux: https://devopscube.com/monitor-linux-
servers-prometheus-node-exporter/
• Basic Authentication:
https://www.stackhero.io/en/services/Prometheus/document
ations/Using-Node-Exporter/Add-authentication-to-
Prometheus-Node-Exporter
• Achtung: Port 9100 von Dmgr besetzt. Verwende 9110.
14.06.2023 Monitoring auf Kubernetes
21
Linux / Windows
• Prometheus Exporter verwendet das Statistik Modul
• Die Daten werden in das Prometheus Format übersetzte.
• Quelle: https://github.com/Lusitaniae/apache_exporter
• Installation: https://computingforgeeks.com/monitor-apache-
web-server-prometheus-grafana/
• Achtung: Port 9100 von Dmgr besetzt. Verwende 9117.
14.06.2023 Monitoring auf Kubernetes
22
IHS / Apache
• Übersetzt die WebSphere PMI Metrics in Prometheus
Format
• IBM :
https://www.ibm.com/docs/en/was/8.5.5?topic=mosh-
displaying-pmi-metrics-in-prometheus-format-metrics-
app
• Singele WebSphere Server in Domain -> Neuer Node
mit einem Server. Kein Cluster.
14.06.2023 Monitoring auf Kubernetes
23
WebSphere
• Neues Node Profile auf Dmgr
• ./manageprofiles.sh -create -profileName $localprofilename -profilePath
$localappnodeprofile -templatePath
$rootDirectory/WebSpheree/AppServer/profileTemplates/managed -hostName $HOSTNAME -
nodeName $localappnodename -federateLater false -dmgrHost $DMGRHOST -dmgrPort
$DMGRPORT -dmgrAdminUserName "$adminuser" -dmgrAdminPassword "$adminpwd"
• Neuer Server:
• node = AdminConfig.getid('/Node:node_name/‘)
AdminConfig.create('Server', node, ['name', 'MonServer1‘])
AdminConfig.save()
14.06.2023 Monitoring auf Kubernetes
24
Installation
• Installation metrics.ear – Installations EAR nicht in
app_server_root/installableApps gefunden.
• Suche im WebSphere Fixpack Verzeichnis:
grep -r metrics * | grep "server_„
unzip -l files/xxxx.file
• Richtiges Ergebnis:
Archiv enthält metrics.jar / metrics.war
• FP23:
cp
files/com.ibm.websphere.WAS.server_542_all.all_8.
5.5023.202301161739.file ~/metrics.ear
14.06.2023 Monitoring auf Kubernetes
25
Installation
• Deploy metrics.ear in neuen MonServer1
• Ändere Context Root von /metrics nach /monitoring
/metrics wird bereits von Connections verwendet.
• Mappe User zur Admin Rolle
• Veröffentliche Anwendung über Webserver
• Prometheus Konfiguration:
- job_name: 'was-backend'
basic_auth:
username: ${WASMonUser}
password: ${WASMonPassword}
metrics_path: /monitoring
scheme: https
static_configs:
- targets: ['${WASHost}']
14.06.2023 Monitoring auf Kubernetes
26
Installation
• WebShpere: 14151
• IHS / Apache: 3984
• Linux Server: 1860
• Nginx: 9614
14.06.2023 Monitoring auf Kubernetes
27
Dashboards
WebSphere (14151)
14.06.2023 Monitoring auf Kubernetes
28
IHS / Apache (3984)
14.06.2023 Monitoring auf Kubernetes
29
Linux Full (1860)
14.06.2023 Monitoring auf Kubernetes
30
Nginx (9614)
14.06.2023 Monitoring auf Kubernetes
31
• Prometheus: https://prometheus.io/
• Grafana Loki: https://grafana.com/oss/loki/
• Grafana: https://grafana.com/oss/grafana/
• Prometheus / Grafana Helm Chart:
https://github.com/prometheus-community/helm-
charts/tree/main/charts/kube-prometheus-stack
• Thanos: https://thanos.io/
• Dashboards: https://grafana.com/grafana/dashboards/
• CNX on EKS Blog: https://skaylink.github.io/skaylink-cnx-cloud/
14.06.2023 Monitoring auf Kubernetes
32
References
DNUG e.V.
Goldenbergstrasse 1
50354 Hürth
Telefon: +49 30 20898805 0
Telefax: +49 30 20898805 1
E-Mail: info@dnug.de
Web: http://www.dnug.de
14.06.2023 Monitoring auf Kubernetes
33

Weitere ähnliche Inhalte

Ähnlich wie DACHNUG50 CNX3 Monitoring.pdf

Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...B1 Systems GmbH
 
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer Infrastruktur
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer InfrastrukturContinuous Delivery für Cloud-native Anwendungen auf Cloud-nativer Infrastruktur
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer InfrastrukturQAware GmbH
 
Steinzeit war gestern! Wege der Cloud-nativen Evolution.
Steinzeit war gestern! Wege der Cloud-nativen Evolution.Steinzeit war gestern! Wege der Cloud-nativen Evolution.
Steinzeit war gestern! Wege der Cloud-nativen Evolution.QAware GmbH
 
Opensource Tools für das Data Center Management
Opensource Tools für das Data Center ManagementOpensource Tools für das Data Center Management
Opensource Tools für das Data Center Managementinovex GmbH
 
fn project serverless computing
fn project serverless computingfn project serverless computing
fn project serverless computingWolfgang Weigend
 
Composer und TYPO3
Composer und TYPO3Composer und TYPO3
Composer und TYPO3Peter Kraume
 
Sicheres Root-Server Hosting mit Linux
Sicheres Root-Server Hosting mit LinuxSicheres Root-Server Hosting mit Linux
Sicheres Root-Server Hosting mit Linuxmarkusmarkert
 
Orchestrierung einer Private Cloud mit OpenStack Heat
Orchestrierung einer Private Cloud mit OpenStack Heat Orchestrierung einer Private Cloud mit OpenStack Heat
Orchestrierung einer Private Cloud mit OpenStack Heat B1 Systems GmbH
 
AdminCamp 14 - IBM Connections Deep Dive
AdminCamp 14 - IBM Connections Deep DiveAdminCamp 14 - IBM Connections Deep Dive
AdminCamp 14 - IBM Connections Deep DiveKlaus Bild
 
HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien
HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien
HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien DNUG e.V.
 
OpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und EntwicklungsumgebungenOpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und EntwicklungsumgebungenB1 Systems GmbH
 
System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...Digicomp Academy AG
 
Verteilte Anwendungen bei Azure mit Docker und Kubernetes
Verteilte Anwendungen bei Azure mit Docker und KubernetesVerteilte Anwendungen bei Azure mit Docker und Kubernetes
Verteilte Anwendungen bei Azure mit Docker und KubernetesGregor Biswanger
 
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im ÜberblickBig Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im ÜberblickKarin Patenge
 
Realtime BigData Step by Step mit Lambda, Kafka, Storm und Hadoop
Realtime BigData Step by Step mit Lambda, Kafka, Storm und HadoopRealtime BigData Step by Step mit Lambda, Kafka, Storm und Hadoop
Realtime BigData Step by Step mit Lambda, Kafka, Storm und HadoopValentin Zacharias
 
Cloud Deployment und (Auto)Scaling am Beispiel von Angrybird
Cloud Deployment und (Auto)Scaling am Beispiel von AngrybirdCloud Deployment und (Auto)Scaling am Beispiel von Angrybird
Cloud Deployment und (Auto)Scaling am Beispiel von AngrybirdAOE
 
Grundlagen puppet
Grundlagen puppetGrundlagen puppet
Grundlagen puppetinovex GmbH
 
OpenStack – Automatisiertes Bereitstellen von Instanzen
OpenStack – Automatisiertes Bereitstellen von InstanzenOpenStack – Automatisiertes Bereitstellen von Instanzen
OpenStack – Automatisiertes Bereitstellen von InstanzenB1 Systems GmbH
 

Ähnlich wie DACHNUG50 CNX3 Monitoring.pdf (20)

Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
 
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer Infrastruktur
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer InfrastrukturContinuous Delivery für Cloud-native Anwendungen auf Cloud-nativer Infrastruktur
Continuous Delivery für Cloud-native Anwendungen auf Cloud-nativer Infrastruktur
 
Steinzeit war gestern! Wege der Cloud-nativen Evolution.
Steinzeit war gestern! Wege der Cloud-nativen Evolution.Steinzeit war gestern! Wege der Cloud-nativen Evolution.
Steinzeit war gestern! Wege der Cloud-nativen Evolution.
 
Opensource Tools für das Data Center Management
Opensource Tools für das Data Center ManagementOpensource Tools für das Data Center Management
Opensource Tools für das Data Center Management
 
fn project serverless computing
fn project serverless computingfn project serverless computing
fn project serverless computing
 
Composer und TYPO3
Composer und TYPO3Composer und TYPO3
Composer und TYPO3
 
Sicheres Root-Server Hosting mit Linux
Sicheres Root-Server Hosting mit LinuxSicheres Root-Server Hosting mit Linux
Sicheres Root-Server Hosting mit Linux
 
Oracle und Docker
Oracle und DockerOracle und Docker
Oracle und Docker
 
Orchestrierung einer Private Cloud mit OpenStack Heat
Orchestrierung einer Private Cloud mit OpenStack Heat Orchestrierung einer Private Cloud mit OpenStack Heat
Orchestrierung einer Private Cloud mit OpenStack Heat
 
AdminCamp 14 - IBM Connections Deep Dive
AdminCamp 14 - IBM Connections Deep DiveAdminCamp 14 - IBM Connections Deep Dive
AdminCamp 14 - IBM Connections Deep Dive
 
HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien
HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien
HCL Domino 14 - Leap 1.1.2 - DNUG Stammtisch Wien
 
OpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und EntwicklungsumgebungenOpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
 
System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...
 
Verteilte Anwendungen bei Azure mit Docker und Kubernetes
Verteilte Anwendungen bei Azure mit Docker und KubernetesVerteilte Anwendungen bei Azure mit Docker und Kubernetes
Verteilte Anwendungen bei Azure mit Docker und Kubernetes
 
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im ÜberblickBig Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
 
Realtime BigData Step by Step mit Lambda, Kafka, Storm und Hadoop
Realtime BigData Step by Step mit Lambda, Kafka, Storm und HadoopRealtime BigData Step by Step mit Lambda, Kafka, Storm und Hadoop
Realtime BigData Step by Step mit Lambda, Kafka, Storm und Hadoop
 
Cloud Deployment und (Auto)Scaling am Beispiel von Angrybird
Cloud Deployment und (Auto)Scaling am Beispiel von AngrybirdCloud Deployment und (Auto)Scaling am Beispiel von Angrybird
Cloud Deployment und (Auto)Scaling am Beispiel von Angrybird
 
Grundlagen puppet
Grundlagen puppetGrundlagen puppet
Grundlagen puppet
 
SOA Suite 12c aus der Infrastruktur-Sicht
SOA Suite 12c aus der Infrastruktur-SichtSOA Suite 12c aus der Infrastruktur-Sicht
SOA Suite 12c aus der Infrastruktur-Sicht
 
OpenStack – Automatisiertes Bereitstellen von Instanzen
OpenStack – Automatisiertes Bereitstellen von InstanzenOpenStack – Automatisiertes Bereitstellen von Instanzen
OpenStack – Automatisiertes Bereitstellen von Instanzen
 

Mehr von DNUG e.V.

Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...DNUG e.V.
 
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...DNUG e.V.
 
Slides zum Impulsreferat: HCL UDP - DNUG Stammtisch Salzburg
Slides zum Impulsreferat: HCL UDP - DNUG Stammtisch SalzburgSlides zum Impulsreferat: HCL UDP - DNUG Stammtisch Salzburg
Slides zum Impulsreferat: HCL UDP - DNUG Stammtisch SalzburgDNUG e.V.
 
Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...DNUG e.V.
 
Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...DNUG e.V.
 
Slides zum Impulsreferat: HCL BigFix - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: HCL BigFix  - DNUG Stammtisch KarlsruheSlides zum Impulsreferat: HCL BigFix  - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: HCL BigFix - DNUG Stammtisch KarlsruheDNUG e.V.
 
Slides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch KarlsruheSlides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch KarlsruheDNUG e.V.
 
Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...
Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...
Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...DNUG e.V.
 
Entwicklung mit Volt MX und Co. | Teil 1
Entwicklung mit Volt MX und Co. | Teil 1Entwicklung mit Volt MX und Co. | Teil 1
Entwicklung mit Volt MX und Co. | Teil 1DNUG e.V.
 
HCL Nomad - DNUG Stammtisch Salzburg.pdf
HCL Nomad - DNUG Stammtisch Salzburg.pdfHCL Nomad - DNUG Stammtisch Salzburg.pdf
HCL Nomad - DNUG Stammtisch Salzburg.pdfDNUG e.V.
 
Trends in Cybersecurity - DNUG Stammtisch Wien
Trends in Cybersecurity - DNUG Stammtisch Wien Trends in Cybersecurity - DNUG Stammtisch Wien
Trends in Cybersecurity - DNUG Stammtisch Wien DNUG e.V.
 
DACHNUG50 MX_Workshop.pdf
DACHNUG50 MX_Workshop.pdfDACHNUG50 MX_Workshop.pdf
DACHNUG50 MX_Workshop.pdfDNUG e.V.
 
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdf
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdfDACHNUG50 Domino REST API - Konzepte und Hintergruende.pdf
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdfDNUG e.V.
 
DACHNUG50 CNX0 Workshop.pdf
DACHNUG50 CNX0 Workshop.pdfDACHNUG50 CNX0 Workshop.pdf
DACHNUG50 CNX0 Workshop.pdfDNUG e.V.
 
DACHNUG50 What's new in CCB - V3.3.pdf
DACHNUG50 What's new in CCB - V3.3.pdfDACHNUG50 What's new in CCB - V3.3.pdf
DACHNUG50 What's new in CCB - V3.3.pdfDNUG e.V.
 
DACHNUG50 presentation 15 June 2023.pdf
DACHNUG50 presentation 15 June 2023.pdfDACHNUG50 presentation 15 June 2023.pdf
DACHNUG50 presentation 15 June 2023.pdfDNUG e.V.
 
DACHNUG50 Pointsharp overview_web_A4.pdf
DACHNUG50 Pointsharp overview_web_A4.pdfDACHNUG50 Pointsharp overview_web_A4.pdf
DACHNUG50 Pointsharp overview_web_A4.pdfDNUG e.V.
 
DACHNUG50 OnTime for Domino.pdf
DACHNUG50 OnTime for Domino.pdfDACHNUG50 OnTime for Domino.pdf
DACHNUG50 OnTime for Domino.pdfDNUG e.V.
 
DACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdf
DACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdfDACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdf
DACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdfDNUG e.V.
 
DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...
DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...
DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...DNUG e.V.
 

Mehr von DNUG e.V. (20)

Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
 
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
 
Slides zum Impulsreferat: HCL UDP - DNUG Stammtisch Salzburg
Slides zum Impulsreferat: HCL UDP - DNUG Stammtisch SalzburgSlides zum Impulsreferat: HCL UDP - DNUG Stammtisch Salzburg
Slides zum Impulsreferat: HCL UDP - DNUG Stammtisch Salzburg
 
Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
 
Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 2 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
 
Slides zum Impulsreferat: HCL BigFix - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: HCL BigFix  - DNUG Stammtisch KarlsruheSlides zum Impulsreferat: HCL BigFix  - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: HCL BigFix - DNUG Stammtisch Karlsruhe
 
Slides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch KarlsruheSlides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch Karlsruhe
Slides zum Impulsreferat: NIS2 & HCL BigFix - DNUG Stammtisch Karlsruhe
 
Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...
Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...
Slides zum Impulsreferat: NIS2 - Was steckt konkret dahinter? - DNUG Stammtis...
 
Entwicklung mit Volt MX und Co. | Teil 1
Entwicklung mit Volt MX und Co. | Teil 1Entwicklung mit Volt MX und Co. | Teil 1
Entwicklung mit Volt MX und Co. | Teil 1
 
HCL Nomad - DNUG Stammtisch Salzburg.pdf
HCL Nomad - DNUG Stammtisch Salzburg.pdfHCL Nomad - DNUG Stammtisch Salzburg.pdf
HCL Nomad - DNUG Stammtisch Salzburg.pdf
 
Trends in Cybersecurity - DNUG Stammtisch Wien
Trends in Cybersecurity - DNUG Stammtisch Wien Trends in Cybersecurity - DNUG Stammtisch Wien
Trends in Cybersecurity - DNUG Stammtisch Wien
 
DACHNUG50 MX_Workshop.pdf
DACHNUG50 MX_Workshop.pdfDACHNUG50 MX_Workshop.pdf
DACHNUG50 MX_Workshop.pdf
 
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdf
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdfDACHNUG50 Domino REST API - Konzepte und Hintergruende.pdf
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdf
 
DACHNUG50 CNX0 Workshop.pdf
DACHNUG50 CNX0 Workshop.pdfDACHNUG50 CNX0 Workshop.pdf
DACHNUG50 CNX0 Workshop.pdf
 
DACHNUG50 What's new in CCB - V3.3.pdf
DACHNUG50 What's new in CCB - V3.3.pdfDACHNUG50 What's new in CCB - V3.3.pdf
DACHNUG50 What's new in CCB - V3.3.pdf
 
DACHNUG50 presentation 15 June 2023.pdf
DACHNUG50 presentation 15 June 2023.pdfDACHNUG50 presentation 15 June 2023.pdf
DACHNUG50 presentation 15 June 2023.pdf
 
DACHNUG50 Pointsharp overview_web_A4.pdf
DACHNUG50 Pointsharp overview_web_A4.pdfDACHNUG50 Pointsharp overview_web_A4.pdf
DACHNUG50 Pointsharp overview_web_A4.pdf
 
DACHNUG50 OnTime for Domino.pdf
DACHNUG50 OnTime for Domino.pdfDACHNUG50 OnTime for Domino.pdf
DACHNUG50 OnTime for Domino.pdf
 
DACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdf
DACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdfDACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdf
DACHNUG50 Interpretation-von-Event-Logs-aus-CNX-mit-Hilfe-von-Domino.pdf
 
DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...
DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...
DACHNUG50 Erfolgreiche Digitalisierung Notes Anwendungen mit Low Code L”sung ...
 

DACHNUG50 CNX3 Monitoring.pdf

  • 1. Monitoring auf Kubernetes Verwende Prometheus um deine Connections Infrastruktur zu überwachen Martin Schmidt +49 162 2626401 martin.schmidt@skaylink.com
  • 2. Martin Schmidt • Senior IT Architect at Skaylink GmbH. – IBM / HCL Connections since 2007 • Experience in – Deployment, Migration, Operation and Customization – Kubernetes EKS and AWS, Container • Focusing on – enhancing with own containers – make the most out of customizer • More and more – DevOps, Automation 14.06.2023 Aufbau einer HCL Connections Umgebung in der AWS Cloud 2
  • 3. Inhalt 14.06.2023 Monitoring auf Kubernetes 3 1. Warum 2. Technologie Stack 3. Installation 4. Dashboards
  • 4. • Prometheus ein Standard Monitoring Tool auf und für Kubernetes • Fertiges Helm Chart verfügbar • Vielfältige Dokumentation 14.06.2023 Monitoring auf Kubernetes 4 Warum Prometheus?
  • 5. • Grafana ein Standard Visualisierung Tool auch für Prometheus • Fertiges Helm Chart verfügbar • Vielfältige Dokumentation • Reichhaltiges Angebot an vorgefertigten Dashboards 14.06.2023 Monitoring auf Kubernetes 5 Warum Grafana?
  • 7. • Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. • Prometheus ist zuständig die Metriken zu sammeln und in einer internen Datenstruktur abzulegen. • Das sammeln der Daten erfolgt über einen einfachen HTTP Request. • Zu überwachende Zeile können über Autodiscovery gefunden werden. 14.06.2023 Monitoring auf Kubernetes 7 Prometheus
  • 9. • Quelle: https://github.com/prometheus- community/helm-charts/tree/main/charts/kube- prometheus-stack • helm repo add prometheus-community https://prometheus-community.github.io/helm- charts • helm install [RELEASE_NAME] prometheus- community/kube-prometheus-stack • Per default werden auch kube-state-metics, prometheus- node-exporter und grafana installiert. 14.06.2023 Monitoring auf Kubernetes 9 Installation
  • 10. • Das Prometheus Dashboard wird nicht über einen Ingress Controller veröffentlicht. • kubectl port-forward -n monitoring pod/prometheus-kube-prometheus-stack- prometheus-0 9090:9090 • Dann Browser: http://localhost:9090 14.06.2023 Monitoring auf Kubernetes 10 Zugriff auf das Prometheus Dashboard
  • 13. • Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate. It does not index the contents of the logs, but rather a set of labels for each log stream. • Loki indiziert log Dateien und speichert sie als stark komprimierte Objekte in S3, GCS oder lokal. • Damit sind Alerts und Auswertungen der Log Dateien der Pods möglich. 14.06.2023 Monitoring auf Kubernetes 13 Grafana Loki
  • 15. • Theoretisch können die WebSphere SystemOut bzw. SystemErr logs auch mit Loki indiziert und gespeichert werden. • Bisher nicht getestet. 14.06.2023 Monitoring auf Kubernetes 15 Grafana Loki - WebSphere
  • 16. • Quelle: https://github.com/grafana/helm- charts/blob/main/charts/loki- stack/README.md • helm repo add grafana https://grafana.github.io/helm-charts • helm install loki grafana/loki-stack 14.06.2023 Monitoring auf Kubernetes 16 Installation loki grafana/loki-stack
  • 17. • Open source, highly available Prometheus setup with long term storage capabilities. • Hier als Langzeitspeicher der Prometheus Daten verwendet. 14.06.2023 Monitoring auf Kubernetes 17 Thanos
  • 19. • Query, visualize, alert on, and understand your data no matter where it’s stored. With Grafana you can create, explore, and share all of your data through beautiful, flexible dashboards. • Visualisierung und Alerting der durch Prometheus gesammelten Daten. • Wird im Prometheus Stack mit installiert. 14.06.2023 Monitoring auf Kubernetes 19 Grafana
  • 21. • Über den Prometheus Node Exporter • Verfügbar als Binary • Installation Linux: https://devopscube.com/monitor-linux- servers-prometheus-node-exporter/ • Basic Authentication: https://www.stackhero.io/en/services/Prometheus/document ations/Using-Node-Exporter/Add-authentication-to- Prometheus-Node-Exporter • Achtung: Port 9100 von Dmgr besetzt. Verwende 9110. 14.06.2023 Monitoring auf Kubernetes 21 Linux / Windows
  • 22. • Prometheus Exporter verwendet das Statistik Modul • Die Daten werden in das Prometheus Format übersetzte. • Quelle: https://github.com/Lusitaniae/apache_exporter • Installation: https://computingforgeeks.com/monitor-apache- web-server-prometheus-grafana/ • Achtung: Port 9100 von Dmgr besetzt. Verwende 9117. 14.06.2023 Monitoring auf Kubernetes 22 IHS / Apache
  • 23. • Übersetzt die WebSphere PMI Metrics in Prometheus Format • IBM : https://www.ibm.com/docs/en/was/8.5.5?topic=mosh- displaying-pmi-metrics-in-prometheus-format-metrics- app • Singele WebSphere Server in Domain -> Neuer Node mit einem Server. Kein Cluster. 14.06.2023 Monitoring auf Kubernetes 23 WebSphere
  • 24. • Neues Node Profile auf Dmgr • ./manageprofiles.sh -create -profileName $localprofilename -profilePath $localappnodeprofile -templatePath $rootDirectory/WebSpheree/AppServer/profileTemplates/managed -hostName $HOSTNAME - nodeName $localappnodename -federateLater false -dmgrHost $DMGRHOST -dmgrPort $DMGRPORT -dmgrAdminUserName "$adminuser" -dmgrAdminPassword "$adminpwd" • Neuer Server: • node = AdminConfig.getid('/Node:node_name/‘) AdminConfig.create('Server', node, ['name', 'MonServer1‘]) AdminConfig.save() 14.06.2023 Monitoring auf Kubernetes 24 Installation
  • 25. • Installation metrics.ear – Installations EAR nicht in app_server_root/installableApps gefunden. • Suche im WebSphere Fixpack Verzeichnis: grep -r metrics * | grep "server_„ unzip -l files/xxxx.file • Richtiges Ergebnis: Archiv enthält metrics.jar / metrics.war • FP23: cp files/com.ibm.websphere.WAS.server_542_all.all_8. 5.5023.202301161739.file ~/metrics.ear 14.06.2023 Monitoring auf Kubernetes 25 Installation
  • 26. • Deploy metrics.ear in neuen MonServer1 • Ändere Context Root von /metrics nach /monitoring /metrics wird bereits von Connections verwendet. • Mappe User zur Admin Rolle • Veröffentliche Anwendung über Webserver • Prometheus Konfiguration: - job_name: 'was-backend' basic_auth: username: ${WASMonUser} password: ${WASMonPassword} metrics_path: /monitoring scheme: https static_configs: - targets: ['${WASHost}'] 14.06.2023 Monitoring auf Kubernetes 26 Installation
  • 27. • WebShpere: 14151 • IHS / Apache: 3984 • Linux Server: 1860 • Nginx: 9614 14.06.2023 Monitoring auf Kubernetes 27 Dashboards
  • 29. IHS / Apache (3984) 14.06.2023 Monitoring auf Kubernetes 29
  • 30. Linux Full (1860) 14.06.2023 Monitoring auf Kubernetes 30
  • 32. • Prometheus: https://prometheus.io/ • Grafana Loki: https://grafana.com/oss/loki/ • Grafana: https://grafana.com/oss/grafana/ • Prometheus / Grafana Helm Chart: https://github.com/prometheus-community/helm- charts/tree/main/charts/kube-prometheus-stack • Thanos: https://thanos.io/ • Dashboards: https://grafana.com/grafana/dashboards/ • CNX on EKS Blog: https://skaylink.github.io/skaylink-cnx-cloud/ 14.06.2023 Monitoring auf Kubernetes 32 References
  • 33. DNUG e.V. Goldenbergstrasse 1 50354 Hürth Telefon: +49 30 20898805 0 Telefax: +49 30 20898805 1 E-Mail: info@dnug.de Web: http://www.dnug.de 14.06.2023 Monitoring auf Kubernetes 33