gitlab-ci-pipelines-exporter

by mvisonneau

Helm chartv0.3.5App v0.5.10

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights

About this chart

gitlab-ci-pipelines-exporter

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights

Homepage: https://github.com/mvisonneau/gitlab-ci-pipelines-exporter

Maintainers

NameEmailUrl
mvisonneau[email protected]

Source Code

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamiredis20.4.0

Values

KeyTypeDefaultDescription
affinityobject{}affinity for pod assignment # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
annotationsobject{}additional annotations for the service
argslist["--config","/etc/config.yml"]arguments for the exporter binary
commandlist["gitlab-ci-pipelines-exporter","run"]command for the exporter binary
configobject{}configuration of the exporter
containerSecurityContextstringnilsecurity context to apply to the containers # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context
customLabelsobject{}Custom labels to add into metadata
envVariableslist[{"name":"GCPE_INTERNAL_MONITORING_LISTENER_ADDRESS","value":"tcp://127.0.0.1:8082"}]environment variables for the container
gitlabSecretstring""name of a Secret containing the GitLab token in the gitlabToken field (required unless config.gitlab.token is specified)
hostAliaseslist[]
image.pullCredentialsobject{}Automatically create a secret with the credentials and use it Cannot be used in conjunction of image.pullSecrets
image.pullPolicystring"IfNotPresent"image pullPolicy
image.pullSecretslist[]Optional array of imagePullSecrets containing private registry credentials Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
image.repositorystring"quay.io/mvisonneau/gitlab-ci-pipelines-exporter"image repository
ingress.annotationsstringniladditional annotations for the ingress resource
ingress.enabledboolfalsedeploy a ingress to access the exporter pod(s) /webhook endpoint
ingress.hostslist["gcpe.example.com"]ingress hosts
ingress.ingressClassNameobject{}ingressClassName to be used instead of the deprecated annotation kubernetes.io/ingress.class
ingress.pathstring"/webhook"path on the exporter to point the root of the ingress
ingress.pathTypestring"Prefix"pathType for the ingress
ingress.service.port.namestring"http"service port for the ingress
ingress.tlslist[{"hosts":["gcpe.example.com"],"secretName":{}}]ingress tls hosts config
labelsobject{}additional labels for the service
livenessProbe.httpGet.pathstring"/health/live"
livenessProbe.httpGet.portint8080
nodeSelectorobject{}node selector for pod assignment # ref: https://kubernetes.io/docs/user-guide/node-selection/
podAnnotationsobject{}additional annotations for the pods
podLabelsobject{}additional labels for the pods
rbacobject{"clusterRole":"","enabled":false,"serviceAccount":{"name":""}}If your kubernetes cluster defined the pod security policy, then you need to enable this part, and define clusterRole based on your situation.
readinessProbe.failureThresholdint3
readinessProbe.httpGet.pathstring"/health/ready"
readinessProbe.httpGet.portint8080
readinessProbe.initialDelaySecondsint5
readinessProbe.periodSecondsint30
readinessProbe.timeoutSecondsint5
redis.architecturestring"standalone"run in standalone or clustermode
redis.auth.enabledboolfalseenable authentication
redis.enabledbooltruedeploy a redis statefulset
redis.master.persistence.enabledboolfalsepersist data
redis.metrics.enabledboolfalseenable /metrics endpoint of the redis pods
redis.metrics.serviceMonitor.enabledboolfalsedeploy a serviceMonitor resource for the redis pods
replicasint1amount of desired pod(s) replica(s)
resourcesobject{}resources to allocate to the pods
securityContextstringnilsecurity context to apply to the pods # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context
service.annotationsobject{}
service.labelsobject{}
service.portint80
service.typestring"ClusterIP"
serviceMonitor.annotationsobject{}additional annotations for the service monitor
serviceMonitor.enabledboolfalsedeploy a serviceMonitor resource
serviceMonitor.endpointslist[{"interval":"10s","port":"http"}]endpoints configuration for the monitor
serviceMonitor.labelsobject{}additional labels for the service monitor
strategyobject{"type":"RollingUpdate"}deployment strategy type
tolerationslist[]tolerations for pod assignment # ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
webhookSecretstring""name of a Secret containing the webhook token in the webhookToken field (required unless config.server.webhook.secret_token is specified)

Deploy gitlab-ci-pipelines-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gitlab-ci-pipelines-exporter 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 chartgitlab-ci-pipelines-exporter is pinned at v0.3.5 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