hertzbeat
by KubeSphere
An open-source, real-time monitoring system with custom monitoring, high performance cluster and agentless capabilities.
About this chart
Helm Chart for HertzBeat
What is HertzBeat?
An open-source, real-time monitoring system with custom monitoring, high performance cluster and agentless capabilities. | 易用友好的开源实时监控告警系统,无需Agent,高性能集群,强大自定义监控能力.
Features
- Combines monitoring, alarm, and notification features into one platform, and supports monitoring for web service, database, os, middleware, cloud-native, network and more.
- Easy to use and agentless, offering full web-based operations for monitoring and alerting with just a few clicks, all at zero learning cost.
- Makes protocols such as
Http, Jmx, Ssh, Snmp, Jdbcconfigurable, allowing you to collect any metrics by simply configuring the templateYMLfile online. Imagine being able to quickly adapt to a new monitoring type like K8s or Docker simply by configuring online with HertzBeat. - High performance, supports horizontal expansion of multi-collector clusters, multi-isolated network monitoring and cloud-edge collaboration.
- Provides flexible alarm threshold rules and timely notifications delivered via
DiscordSlackTelegramEmailDingtalkWeChatFeiShuWebhookSMSServerChan.
HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help developers and teams quickly build their own monitoring system.
We also provide SaaS Monitoring Cloud, users no longer need to deploy a cumbersome monitoring system to monitor their resources. Get started online for free.
Helm Chart for HertzBeat
This Helm chart installs HertzBeat in a Kubernetes cluster. Welcome to contribute to Helm Chart for HertzBeat.
Prerequisites
- Kubernetes cluster 1.20+
- Helm v3.2.0+
Installation
Add Helm repository
helm repo add hertzbeat https://charts.hertzbeat.com/
helm repo update
Configure the chart
The following items can be set via --set flag during installation or configured by editing the values.yaml directly (need to download the chart first).
Configure how to expose HertzBeat service
- Ingress: The ingress controller must be installed in the Kubernetes cluster.
- ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster.
- NodePort: Exposes the service on each Node’s IP at a static port (the NodePort). You’ll be able to contact the NodePort service, from outside the cluster, by requesting
NodeIP:NodePort. - LoadBalancer: Exposes the service externally using a cloud provider’s load balancer.
Configure the external URL
The external URL for HertzBeat core service is used to:
- populate the docker/helm commands showed on portal
- populate the token service URL returned to docker client
Format: protocol://domain[:port]. Usually:
- if service exposed via
Ingress, thedomainshould be the value ofexpose.ingress.hosts.core - if service exposed via
ClusterIP, thedomainshould be the value ofexpose.clusterIP.name - if service exposed via
NodePort, thedomainshould be the IP address of one Kubernetes node - if service exposed via
LoadBalancer, set thedomainas your own domain name and add a CNAME record to map the domain name to the one you got from the cloud provider
If HertzBeat is deployed behind the proxy, set it as the URL of proxy.
Configure how to persist data
- Disable: The data does not survive the termination of a pod.
- Persistent Volume Claim(default): A default
StorageClassis needed in the Kubernetes cluster to dynamically provision the volumes. Specify another StorageClass in thestorageClassor setexistingClaimif you already have existing persistent volumes to use.
Configure the other items listed in configuration section
Install the chart
Install the HertzBeat helm chart with a release name my-release:
helm install hertzbeat hertzbeat/hertzbeat
Uninstallation
To uninstall/delete the hertzbeat deployment:
helm uninstall hertzbeat
Configuration
The following table lists the configurable parameters of the HertzBeat chart and the default values.
| Parameter | Description | Default |
|---|---|---|
| Expose | ||
expose.type | How to expose the service: ingress, clusterIP, nodePort or loadBalancer, other values will be ignored and the creation of service will be skipped. | ingress |
expose.clusterIP.name | The name of ClusterIP service | hertzbeat |
expose.clusterIP.annotations | The annotations attached to the ClusterIP service | {} |
expose.clusterIP.ports.port | The service port HertzBeat listens on when serving HTTP | 80 |
expose.nodePort.name | The name of NodePort service | hertzbeat |
expose.nodePort.ports.port | The service port HertzBeat listens on when serving HTTP | 80 |
expose.nodePort.ports.nodePort | The node port HertzBeat listens on when serving HTTP | 30002 |
expose.loadBalancer.IP | The IP of the loadBalancer. It only works when loadBalancer supports assigning IP | "" |
expose.loadBalancer.ports.port | The service port HertzBeat listens on when serving HTTP | 80 |
expose.loadBalancer.sourceRanges | List of IP address ranges to assign to loadBalancerSourceRanges | [] |
| Manager | ||
manager.account.username | The hertzbeat account username | admin |
manager.account.password | The hertzbeat account password | hertzbeat |
manager.resources | The [resources] to allocate for container | undefined |
manager.nodeSelector | Node labels for pod assignment | {} |
manager.tolerations | Tolerations for pod assignment | [] |
manager.affinity | Node/Pod affinities | {} |
manager.podAnnotations | Annotations to add to the nginx pod | {} |
| Collector | ||
collector.replicaCount | The replica count | 1 |
collector.autoscaling.enable | Is enable auto scaling collector replicas | 1 |
collector.resources | The [resources] to allocate for container | undefined |
collector.nodeSelector | Node labels for pod assignment | {} |
collector.tolerations | Tolerations for pod assignment | [] |
collector.affinity | Node/Pod affinities | {} |
collector.podAnnotations | Annotations to add to the nginx pod | {} |
| Database | ||
database.timezone | The database system timezone | 1 |
database.rootPassword | The database root user password | 1 |
database.persistence.enabled | Enable the data persistence or not |
Deploy hertzbeat with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hertzbeat on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthertzbeat is pinned at v1.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply