beacon-metrics-gazer

by ethPandaOps

Helm chartv0.1.4Verified publisher

Collects network wide participation metrics given a range of indexes

About this chart

beacon-metrics-gazer

Collects network wide participation metrics given a range of indexes

Homepage: https://github.com/dapplion/beacon-metrics-gazer

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the StatefulSet
containerSecurityContextobjectSee values.yamlThe security context for containers
customCommandlist[]Command replacement for the forkmon container
endpointstring"http://beacon-node:5052"Endpoint that you would like to monitor
extraArgslist[]Extra args for the forkmon container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPortslist[]Additional ports. Useful when using extraContainers
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
fullnameOverridestring""Overrides the chart's computed fullname
httpPortint8080
image.pullPolicystring"IfNotPresent"forkmon container pull policy
image.repositorystring"dapplion/beacon-metrics-gazer"forkmon container image repository
image.tagstring"latest"
imagePullSecretslist[]Image pull secrets for Docker images
ingress.annotationsobject{}Annotations for Ingress
ingress.enabledboolfalseIngress resource for the HTTP API
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]Ingress TLS
initContainerslist[]Additional init containers
livenessProbeobjectSee values.yamlLiveness probe
nameOverridestring""Overrides the chart's name
nodeSelectorobject{}Node selector for pods
persistence.accessModeslist["ReadWriteOnce"]Access mode for the volume claim template
persistence.annotationsobject{}Annotations for volume claim template
persistence.enabledboolfalseUses an EmptyDir when not enabled
persistence.existingClaimstringnilUse an existing PVC when persistence.enabled
persistence.selectorobject{}Selector for volume claim template
persistence.sizestring"1Gi"Requested size for volume claim template
persistence.storageClassNamestringnilUse a specific storage class E.g 'local-path' for local storage to achieve best performance Read more (https://github.com/rancher/local-path-provisioner)
podAnnotationsobject{}Pod annotations
podDisruptionBudgetobject{}Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created
podLabelsobject{}Pod labels
podManagementPolicystring"OrderedReady"Pod management policy
priorityClassNamestringnilPod priority class
rangesstringSee values.yamlConfig file - defaults are set to the sepolia validator set
readinessProbeobjectSee values.yamlReadiness probe
replicasint1Number of replicas
resourcesobject{}Resource requests and limits
secretEnvobject{}Additional env variables injected via a created secret
securityContextobjectSee values.yamlThe security context for pods
service.typestring"ClusterIP"Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"1m"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/metrics"Path to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
terminationGracePeriodSecondsint30How long to wait until the pod is forcefully terminated
tolerationslist[]Tolerations for pods
topologySpreadConstraintslist[]Topology Spread Constraints for pods
updateStrategyobject{"type":"RollingUpdate"}Update strategy for the Statefulset
updateStrategy.typestring"RollingUpdate"Update strategy type

Example

Usage: beacon-metrics-gazer [OPTIONS]

Arguments:

  <URL>  Beacon HTTP API URL: http://1.2.3.4:4000

Options:

      --ranges <RANGES>            Index ranges to group IDs as JSON or TXT. Example: `{"0..100": "lh-geth-0", "100..200": "lh-geth-1"}
      --ranges-file <RANGES_FILE>  Local path or URL containing a file with index ranges with the format as defined in --ranges
      --dump                       Dump participation ranges print to stderr on each fetch
  -p, --port <PORT>                Metrics server port [default: 8080]
      --address <ADDRESS>          Metrics server bind address [default: 127.0.0.1]
  -h, --help                       Print help
  -V, --version                    Print version

The format of the ranges file is very flexible, can be JSON, YAML or plain text:

0-500 Nethermind lighthouse-0
500-1000 Nethermind lighthouse-1
1000-1500 Nethermind teku-0
1500-2000 Nethermind teku-1
2000-2500 Nethermind lodestar-0
2500-3750 Gateway lh + nethermind
3750-5000 Gateway lh + nethermind

More details can be found here or here.

Deploy beacon-metrics-gazer with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has beacon-metrics-gazer 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbeacon-metrics-gazer is pinned at v0.1.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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