github-exporter

by Promhippie

Helm chartv22.3.0App 21.3.0Apache-2.0Verified publisher

A Helm chart for github-exporter

About this chart

github-exporter

A Helm chart for github-exporter

Homepage: https://promhippie.github.io/github_exporter/

Installing the Chart

OCI (Recommended)

helm install github-exporter oci://ghcr.io/promhippie/charts/github-exporter

Traditional

helm repo add promhippie https://promhippie.github.io/charts
helm repo update
helm install github-exporter promhippie/github-exporter

Maintainers

NameEmailUrl
tboerger[email protected]https://github.com/tboerger

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for the deployment
annotationsobject{}Define additional annotations
collector.adminboolfalseEnable collector for admin
collector.billingboolfalseEnable collector for billing
collector.orgsbooltrueEnable collector for orgs
collector.reposbooltrueEnable collector for repos
collector.runnersboolfalseEnable collector for runners
collector.workflow_jobsboolfalseEnable collector for workflow jobs
collector.workflow_runsboolfalseEnable collector for workflow runs
config.appIdnumbernilApp ID used for GitHub app
config.appIdKeystring"appId"Key used within secret for appId
config.authTypestring"token"Authentication mode, could be token or app
config.existingSecretstringnilExisting secret to use for credentials
config.installationIdnumbernilInstallation ID used for GitHub app
config.installationIdKeystring"installationId"Key used within secret for installationId
config.privateKeystringnilPrivate key in base64 encoded format
config.privateKeyKeystring"privateKey"Key used within secret for privateKey
config.tokenstringnilAccess token for GitHub
config.tokenKeystring"token"Key used within secret for token
database.dsnstring"sqlite:///var/lib/exporter/database.sqlite3"DSN for used database and credentials
database.dsnKeystring"dsn"Key used within secret for webhook
database.enabledboolfalseEnable database secret integration
database.existingSecretstringnilExisting secret to use for credentials
envFromConfigMapstring""Environment variables from existing configmap
envFromSecretstring""environment variables from existing secret
exporter.enterprisesstringnilEnterprises to scrape metrics from
exporter.orgsstringnilOrganizations to scrape metrics from
exporter.reposstringnilRepositories to scrape metrics from
extraEnvSecretsobject{}Extra environment variables from secrets
extraEnvVariablesobject{}Extra environment variables from mapping
extraInitContainerslist[]List of extra init containers
extraVolumeMountslist[]List of extra volume mounts
extraVolumeslist[]List of extra volumes
filesobject{}List of files written to a configmap and mounted to /etc/github-exporter-files
fullnameOverridestring""Override the fullname
image.pullPolicystring"IfNotPresent"Image pull policy
image.pullSecretslist[]Optional name of pull secret if using a private registry
image.repositorystring"quay.io/promhippie/github-exporter"Image repository used by deployment
image.tagstring""Optional tag for the repository, defaults to app version
ingress.annotationsobject{}Additional annotations for the ingress
ingress.classNamestringnilClass name for the ingress resource
ingress.enabledboolfalseEnable ingress
ingress.hostslist[{"host":"example.local","paths":[{"path":"/","pathType":"Prefix"}]}]Host definition for ingress
ingress.labelsobject{}Additional labels for the ingress
ingress.tlslist[]Optional TLS configuration for ingress
labelsobject{}Define additional labels
nameOverridestring""Override the name
nodeSelectorobject{}Node selector for the deployment
persistence.accessModeslist["ReadWriteOnce"]Access modes used for the exporter volume
persistence.enabledboolfalseEnable persistence for the exporter
persistence.existingClaimstringnilName of an already existing claim
persistence.mountPathstring"/var/lib/exporter"Path to mount the exporter volume
persistence.sizestring"1G"Size for the exporter volume
persistence.storageClassstringnilStorage class used for the exporter volume
podSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]},"readOnlyRootFilesystem":true,"runAsGroup":10000,"runAsNonRoot":true,"runAsUser":10000}Security context for the pod
prometheusRule.additionalLabelsobject{}Additional labels for prometheus rules
prometheusRule.enabledboolfalseEnable custom prometheus rules
prometheusRule.namespacestring""Namespace used by prometheus rules
prometheusRule.ruleslist[]Rules definition
replicaCountint1Replicas for the deployment
resourcesobject{}Resources for the deployment
securityContextobject{"fsGroup":10000}Security context for the deployment
service.annotationsobject{}Additional annotations for the service
service.internalPortint9504Internal port of the service
service.labelsobject{}Additional labels for the service
service.portint9504Port of the service
service.typestring"ClusterIP"Type of the service
serviceAccount.createbooltrueCreate a new service account
serviceAccount.namestring""Optional name for an existing service account
serviceMonitor.enabledboolfalseEnable service monitor integration
serviceMonitor.intervalstring"30s"Scrape interval
serviceMonitor.jobLabelstringnilOptionally override the job label
serviceMonitor.labelsobject{}Additional labels for the service monitor
serviceMonitor.metricRelabelingslist[]Metric relabeling configuration
serviceMonitor.namespacestring""Namespace used by service monitor
serviceMonitor.relabelingslist[]Relabeling configuration
serviceMonitor.targetLabelslist[]Target labels
serviceMonitor.telemetryPathstring"/metrics"Scrape path
serviceMonitor.timeoutstring"30s"Scrape timeout
tolerationslist[]Tolerations for the deployment
updateStrategyobject{"type":"RollingUpdate"}Update strategy for the deployment
webhook.enabledboolfalseEnable webhook secret integration
webhook.existingSecretstringnilExisting secret to use for credentials
webhook.pathstringnilPath for webhook endpoint
webhook.secretstringnilSecret for webhook authentication
webhook.secretKeystring"secret"Key used within secret for webhook
workflow_job.labelslist[]List of labels assigned for workflow metrics
workflow_job.windowstring"24h"Duration to keep workflow metrics
workflow_run.labelslist[]List of labels assigned for workflow metrics
workflow_run.windowstring"24h"Duration to keep workflow metrics

Deploy github-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has github-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 chartgithub-exporter is pinned at v22.3.0 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