kubernetes-monitoring
Setup for monitoring kubernetes cluster (by sybrenbolandit)
java-spring-api
Simple java rest api using spring (by sybrenbolandit)
Our great sponsors
kubernetes-monitoring | java-spring-api | |
---|---|---|
4 | 12 | |
0 | 0 | |
- | - | |
0.0 | 0.0 | |
almost 4 years ago | over 2 years ago | |
Smarty | Java | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kubernetes-monitoring
Posts with mentions or reviews of kubernetes-monitoring.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-09.
-
FLUENT
The complete code for this post is found here on github. We examine the Dockerfile for it is extended with the elasticsearch plugin. The plugin is required for Elasticsearch is the Data Storage that we will use in this post.
-
HELM SECRETS
In this post we will encrypt a value and use it in a Helm deployment. The complete code can be found here on github but follow along and learn how to use this technique in all your Helm deployments.
-
PROMETHEUS ALERTING
We already saw multiple Custom Resourse Definitions (CRDs) that the Prometheus Operator gives us. The Alertmanager is also a CRD. The definition of this instance is very simple. The complete code for this setup is found on this branch on github.
-
KUBERNETES AND PROMETHEUS
Prometheus will be a separate pod in your cluster that will scrape given endpoints for information. In this first section we will get this pod running. All code for this section is found on github. Let’s take a look at the Kubernetes resource definition of Prometheus:
java-spring-api
Posts with mentions or reviews of java-spring-api.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-09.
-
FLUENT
We start with an example app that will generate logs. We will use a Java API from a previous post on deploying with Helm. For the complete code for this section take a look at this branch here. We see that we have a logback.xml where we specify to write logs to a file. (See here te relevant part)
-
OAS3 AND SPRING BOOT
We will add OAS3 documentation to a Java Spring API from a previous post on Kubernetes Helm. The completed code for this post is found on github here.
-
SPRING AUTOCONFIGURE
We are going to reuse an application that we made in an earlier post (found here). It’s just a basic setup with a greetings endpoint. The code that is used is found on github here.
-
PROMETHEUS ALERTING
Now we have the architecture in place. We only need to add a Prometheus Rule for our application that triggers an alert. We build from the Spring Boot application that we deployed in the cluster in an earlier post. The configuration of this rule is done as another CRD and is found on this branch on github.
-
KUBERNETES AND PROMETHEUS
The full code can be found on this branch. Here are the steps I took.
-
GENERIC JENKINS FILE
With our library in place we can remove the pipeline config out of our Jenkins file and refer to it as follows: (or checkout the code here)
-
JENKINS DELOY TO KUBERNETES
To get our app running on kubernetes we need a deployment definition. Check out this branch of our test application and check deployment/deployment.yaml:
-
DOCKER ON JENKINS
We need an application to test our Jenkins pipeline on. Let’s take a simple Java API using Spring. Here is the application I used on github.
What are some alternatives?
When comparing kubernetes-monitoring and java-spring-api you can also consider the following projects:
fluent-bit - Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
springdoc-openapi - Library for OpenAPI 3 with spring-boot
minikube-jenkins - Setup for helm install of jenkins on minikube
jenkins-ci - Example pipeline library
spring-auto-configure-controller - Auto configured explamation-controller with Spring
Fluentd - Fluentd: Unified Logging Layer (project under CNCF)