forked from mkoertgen/azure-app-exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
37 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# azure-app-exporter | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.19](https://img.shields.io/badge/AppVersion-0.1.19-informational?style=flat-square) | ||
![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.38](https://img.shields.io/badge/AppVersion-0.1.38-informational?style=flat-square) | ||
|
||
Exposing Prometheus Metrics for Azure Service Principals | ||
|
||
**Homepage:** <https://github.com/dodevops/azure-app-exporter> | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
|----------------|-----------------------------|--------------------------------| | ||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| Marcel Körtgen | <[email protected]> | <https://github.com/mkoertgen> | | ||
| DO! DevOps | <[email protected]> | <https://github.com/dodevops> | | ||
| DO! DevOps | <[email protected]> | <https://github.com/dodevops> | | ||
|
||
## Source Code | ||
|
||
|
@@ -21,51 +21,15 @@ Exposing Prometheus Metrics for Azure Service Principals | |
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| affinity | object | `{}` | | | ||
| autoscaling.enabled | bool | `false` | | | ||
| autoscaling.maxReplicas | int | `100` | | | ||
| autoscaling.minReplicas | int | `1` | | | ||
| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | ||
| azure.client.id | string | `"-unset-"` | The AppId of the Service Principal for listing Azure applications | | ||
| azure.client.secret | string | `"-unset-"` | The Client Secret of the Service Principal | | ||
| azure.enabled | bool | `false` | Enable connection to Azure | | ||
| azure.tagsFilter | list | `[]` | a list of tags. Only the apps having one of the tags are returned | | ||
| azure.tenant | string | `"-unset-"` | Your Azure Tenant Id | | ||
| fullnameOverride | string | `""` | | | ||
| image.pullPolicy | string | `"IfNotPresent"` | | | ||
| image.repository | string | `"ghcr.io/mkoertgen/azure-app-exporter/azure-app-exporter"` | The container image repository to use | | ||
| image.repository | string | `"ghcr.io/dodevops/azure-app-exporter/azure-app-exporter"` | The container image repository to use | | ||
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. | | ||
| imagePullSecrets | list | `[]` | | | ||
| ingress.annotations | object | `{}` | | | ||
| ingress.className | string | `""` | | | ||
| ingress.enabled | bool | `false` | | | ||
| ingress.hosts[0].host | string | `"chart-example.local"` | | | ||
| ingress.hosts[0].paths[0].path | string | `"/"` | | | ||
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | | ||
| ingress.tls | list | `[]` | | | ||
| metrics.enabled | bool | `true` | Enable Prometheus metrics | | ||
| metrics.serviceMonitor.additionalLabels | list | `[]` | | | ||
| metrics.serviceMonitor.enabled | bool | `false` | Enable a [ServiceMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec) | | ||
| metrics.serviceMonitor.honorLabels | bool | `false` | | | ||
| metrics.serviceMonitor.jobLabel | string | `""` | | | ||
| metrics.serviceMonitor.metricRelabelings | list | `[]` | | | ||
| metrics.serviceMonitor.namespace | string | `""` | | | ||
| metrics.serviceMonitor.namespaceSelector | object | `{}` | | | ||
| metrics.serviceMonitor.relabelings | list | `[]` | | | ||
| metrics.serviceMonitor.scrapeInterval | string | `"30s"` | | | ||
| metrics.serviceMonitor.targetLabels | list | `[]` | | | ||
| nameOverride | string | `""` | | | ||
| nodeSelector | object | `{}` | | | ||
| podAnnotations | object | `{}` | | | ||
| podSecurityContext | object | `{}` | | | ||
| replicaCount | int | `1` | | | ||
| resources | object | `{}` | | | ||
| securityContext | object | `{}` | | | ||
| service.port | int | `8000` | | | ||
| service.type | string | `"ClusterIP"` | | | ||
| serviceAccount.annotations | object | `{}` | | | ||
| serviceAccount.create | bool | `true` | | | ||
| serviceAccount.name | string | `""` | | | ||
| tolerations | list | `[]` | | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.8.1](https://github.com/norwoodj/helm-docs/releases/v1.8.1) | ||
Autogenerated from chart metadata using [helm-docs v1.14.0](https://github.com/norwoodj/helm-docs/releases/v1.14.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: {{ include "azure-app-exporter.fullname" . }}-refresh-apis | ||
labels: | ||
{{- include "azure-app-exporter.labels" . | nindent 4 }} | ||
spec: | ||
schedule: "0 * * * *" | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
securityContext: | ||
{{- toYaml .Values.podSecurityContext | nindent 14 }} | ||
containers: | ||
- name: refresh-apis | ||
image: busybox:latest | ||
imagePullPolicy: IfNotPresent | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 18 }} | ||
command: | ||
- /bin/sh | ||
- -c | ||
- wget -O - "http://{{ include "azure-app-exporter.fullname" . }}:{{ .Values.service.port }}/api/apps" | ||
restartPolicy: OnFailure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{{ if (.Release.IsInstall | default true) }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "azure-app-exporter.secretName" . }} | ||
labels: | ||
{{- include "azure-app-exporter.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": pre-install | ||
"helm.sh/hook-delete-policy": hook-failed | ||
type: Opaque | ||
data: | ||
azure-client-id: {{ .Values.azure.client.id | default "-unset-" | b64enc | quote }} | ||
azure-client-secret: {{ .Values.azure.client.secret | default "-unset-" | b64enc | quote }} | ||
azure-tenant-id: {{ .Values.azure.tenant | default "-unset-" | b64enc | quote }} | ||
{{- end -}} |