github-prometheus-exporter

by joaquinito2051

Helm chartv0.1.3App release-1.0.1

A Helm chart for Kubernetes

About this chart

Github Prometheus Exporter

A chart for https://github.com/infinityworks/github-exporter

Values

KeyTypeDefaultDescription
replicaCountint1
config.githubTokenstring""A github token to be kept in environment
config.reposstring""Env REPOS. If supplied, The repos you wish to monitor, expected in the format "user/repo1, user/repo2". Can be across different Github users/orgs.
config.usersstring""Env USERS. If supplied, the exporter will enumerate all repositories for that users. Expected in the format "user1, user2"
config.orgsstring""Env ORGS. If supplied, the exporter will enumerate all repositories for that organization. Expected in the format "org1, org2".
config.apiURLstring"https://api.github.com"Github API URL, shouldn't need to change this.
config.logLevelstring"debug"The level of logging the exporter will run with
image.repositorystring"infinityworks/github-exporter"Where to find the docker image
image.pullPolicystring"Always"The image pull policy. Strongly recommend not changing this
image.tagstring""Overrides the image tag whose default is the chart appVersion
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.annotationsobject{}Annotations to add to the service account
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
podAnnotationsobject{}A map of annotations to add to the pod
podSecurityContextobject{}A pod security context to add
securityContextobject{}
service.typestring"ClusterIP"The type of service to expose
service.portint9171The port that the service will listen on
ingress.enabledboolfalse
ingress.annotationsobject{}
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]
resourcesobject{}
autoscaling.enabledboolfalse
autoscaling.minReplicasint1
autoscaling.maxReplicasint100
autoscaling.targetCPUUtilizationPercentageint80
nodeSelectorobject{}
tolerationslist[]
affinityobject{}

Deploy github-prometheus-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-prometheus-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-prometheus-exporter is pinned at v0.1.3 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