swift-exporter

by ENIX

Helm chartv0.1.0App 1.16.0Verified publisher

A Helm chart for Kubernetes

About this chart

:rotating_light: Swift Exporter

A Prometheus exporter for Swift Object Storage focusing on authentification monitoring, written in Python. Designed to be used within Kubernetes clusters, however it can also be used as a standalone exporter.

🏃 TL; DR

It only takes two commands to install swift-exporter, however you should read the instructions in the next section to take advantage of all the features!

Add our Charts repository :

$ helm repo add enix https://charts.enix.io

Install swift-exporter for TLS Secrets monitoring with prometheus-operator support :

$ helm install swift-exporter enix/swift-exporter

Values

KeyTypeDefaultDescription
exporter.request_rateint5Defines the exporter's request rate in seconds.
exporter.timeoutint3Exporter's allowed time in seconds to make a request. If this count down reaches 0 a timout exception is raised
image.pullPolicystring"IfNotPresent"swift-exporter image pull policy
image.registrystring"docker.io"swift-exporter image registry
image.repositorystring"enix/swift-exporter"swift-exporter image repository
image.tagstringnilswift-exporter image tag (defaults to Chart appVersion)
podAnnotationsobject{"prometheus.io/port":"8000","prometheus.io/scrape":"true"}Annotations added to all Pods
podExtraLabelsobject{}
podListenPortint8000TCP port to expose Pods on
prometheusPodMonitor.createboolfalseShould a PodMonitor ressource be installed to scrape this exporter. For prometheus-operator (kube-prometheus) users.
prometheusPodMonitor.extraLabelsobject{}Extra labels to add on PodMonitor ressources
prometheusPodMonitor.relabelingsobject{}Relabel config for the PodMonitor, see: https://coreos.com/operators/prometheus/docs/latest/api.html#relabelconfig
prometheusPodMonitor.scrapeIntervalstring"15s"Target scrape interval set in the PodMonitor
prometheusServiceMonitor.createbooltrueShould a ServiceMonitor ressource be installed to scrape this exporter. For prometheus-operator (kube-prometheus) users.
prometheusServiceMonitor.extraLabelsobject{"release":"prometheus-operator","serviceapp":"coredns-servicemonitor"}Extra labels to add on ServiceMonitor ressources
prometheusServiceMonitor.relabelingsobject{}Relabel config for the ServiceMonitor, see: https://coreos.com/operators/prometheus/docs/latest/api.html#relabelconfig
prometheusServiceMonitor.scrapeIntervalstring"15s"Target scrape interval set in the ServiceMonitor
service.annotationsobject{"prometheus.io/port":"8000","prometheus.io/scrape":"true"}Annotations to add to the Service
service.createbooltrueShould a headless Service be installed, targets all instances Deployment (required for ServiceMonitor)
service.extraLabelsobject{}Extra labels to add to the Service
service.portint8000TCP port to expose the Service on
swift.domainstring"Default"Swift domain
swift.projectstringnilThe Swift project
swift.project_domainstring"Default"Swift project domain
swift.urlstringnilA Swift authentication url to target
swift.usrstringnilA Swift user
swiftExporter.nodeSelectorobject{}Node selector for Pods of the Swift Exporter
swiftExporter.podAnnotationsobject{}Annotations added to Pods of the Swift Exporter
swiftExporter.podExtraLabelsobject{}Extra labels added to Pods of the Swift Exporter
swiftExporter.podSecurityContextobject{}PodSecurityContext for Pods of the Swift Exporter
swiftExporter.replicasint1Desired number of Swift Exporter Pod
swiftExporter.resourcesobjectsee values.yamlResourceRequirements for containers of the Swift Exporter
swiftExporter.restartPolicystring"Always"restartPolicy for Pods of the Swift Exporter
swiftExporter.securityContextobjectsee values.yamlSecurityContext for containers of the Swift Exporter

Deploy swift-exporter with OpenTenant

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