-
-
Notifications
You must be signed in to change notification settings - Fork 96
chore(helm): add README.md, release 0.2.1 #394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,71 @@ | ||
| # sql-exporter | ||
|
|
||
|    | ||
|
|
||
| Database agnostic SQL exporter for Prometheus | ||
|
|
||
| ## Source Code | ||
|
|
||
| * <https://github.com/burningalchemist/sql_exporter> | ||
|
|
||
| ## Maintainers | ||
|
|
||
| | Name | Email | Url | | ||
| | ---- | ------ | --- | | ||
| | Nikolai Rodionov | <allanger@zohomail.com> | <https://badhouseplants.net> | | ||
|
|
||
| ## Installing the Chart | ||
|
|
||
| To install the chart with the release name `sql-exporter`: | ||
|
|
||
| ```console | ||
| helm repo add sql_exporter https://burningalchemist.github.io/sql_exporter/ | ||
| helm install sql_exporter/sql-exporter | ||
| ``` | ||
|
|
||
| ## Chart Values | ||
|
|
||
| ### General parameters | ||
|
|
||
| | Key | Type | Default | Description | | ||
| |-----|------|---------|-------------| | ||
| | nameOverride | string | `""` | Provide a name in place of `sql-exporter` | | ||
| | fullnameOverride | string | `""` | String to fully override "sql-exporter.fullname" | | ||
| | image.repository | string | `"burningalchemist/sql_exporter"` | Image repository | | ||
| | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | | ||
| | image.tag | string | `appVersion` value from `Chart.yaml` | Image tag | | ||
| | imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry | | ||
| | service.type | string | `"ClusterIP"` | Service type | | ||
| | service.port | int | `80` | Service port | | ||
| | service.labels | object | `{}` | Service labels | | ||
| | service.annotations | object | `{}` | Service annotations | | ||
| | resources | object | `{}` | Resource limits and requests for the application controller pods | | ||
| | podLabels | object | `{}` | Pod labels | | ||
| | podAnnotations | object | `{}` | Pod annotations | | ||
| | podSecurityContext | object | `{}` | Pod security context | | ||
|
|
||
| ### Prometheus ServiceMonitor | ||
|
|
||
| | Key | Type | Default | Description | | ||
| |-----|------|---------|-------------| | ||
| | serviceMonitor.enabled | bool | `true` | Enable ServiceMonitor | | ||
| | serviceMonitor.interval | string | `"15s"` | ServiceMonitor interval | | ||
| | serviceMonitor.path | string | `"/metrics"` | ServiceMonitor path | | ||
| | serviceMonitor.scrapeTimeout | string | `"60s"` | ServiceMonitor scrape timeout | | ||
|
|
||
| ### Configuration | ||
|
|
||
| | Key | Type | Default | Description | | ||
| |-----|------|---------|-------------| | ||
| | config.global.scrape_timeout | string | `"10s"` | Scrape timeout | | ||
| | config.global.scrape_timeout_offset | string | `"500ms"` | Scrape timeout offset. Must be strictly positive. | | ||
| | config.global.min_interval | string | `"0s"` | Minimum interval between collector runs. | | ||
| | config.global.max_connections | int | `3` | Number of open connections. | | ||
| | config.global.max_idle_connections | int | `3` | Number of idle connections. | | ||
| | target | object | `nil` | Check documentation. Mutually exclusive with `jobs` | | ||
| | jobs | list | `nil` | Check documentation. Mutually exclusive with `target` | | ||
| | collector_files | list | `[]` | Check documentation | | ||
|
|
||
| To configure `target`, `jobs`, `collector_files` please refer to the [documentation](https://github.com/burningalchemist/sql_exporter/blob/master/documentation/sql_exporter.yml) in the source repository. These values are not set by default. | ||
|
|
||
| It's also possible to define collectors (i.e. metrics and queries) in separate files, and specify the filenames in the `collector_files` list. For that we can use `CollectorFiles` field (check `values.yaml` for the available example). |
This file contains hidden or 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,61 @@ | ||
| {{ template "chart.header" . }} | ||
| {{ template "chart.deprecationWarning" . }} | ||
|
|
||
| {{ template "chart.badgesSection" . }} | ||
|
|
||
| {{ template "chart.description" . }} | ||
|
|
||
| {{ template "chart.sourcesSection" . }} | ||
|
|
||
| {{ template "chart.maintainersSection" . }} | ||
|
|
||
| {{ template "chart.requirementsSection" . }} | ||
|
|
||
|
|
||
| ## Installing the Chart | ||
|
|
||
| To install the chart with the release name `sql-exporter`: | ||
|
|
||
| ```console | ||
| helm repo add sql_exporter https://burningalchemist.github.io/sql_exporter/ | ||
| helm install sql_exporter/sql-exporter | ||
| ``` | ||
|
|
||
| ## Chart Values | ||
|
|
||
| ### General parameters | ||
|
|
||
| | Key | Type | Default | Description | | ||
| |-----|------|---------|-------------| | ||
| {{- range .Values }} | ||
| {{- if not (or (hasPrefix "serviceMonitor" .Key) (hasPrefix "config" .Key) (hasPrefix "collectorFiles" .Key))}} | ||
| | {{ .Key }} | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} | | ||
| {{- end }} | ||
| {{- end }} | ||
|
|
||
| ### Prometheus ServiceMonitor | ||
|
|
||
| | Key | Type | Default | Description | | ||
| |-----|------|---------|-------------| | ||
| {{- range .Values }} | ||
| {{- if hasPrefix "serviceMonitor" .Key }} | ||
| | {{ .Key }} | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} | | ||
| {{- end }} | ||
| {{- end }} | ||
|
|
||
| ### Configuration | ||
|
|
||
| | Key | Type | Default | Description | | ||
| |-----|------|---------|-------------| | ||
| {{- range .Values }} | ||
| {{- if or (hasPrefix "config" .Key) }} | ||
| | {{ .Key }} | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} | | ||
| {{- end }} | ||
| {{- end }} | ||
| | target | object | `nil` | Check documentation. Mutually exclusive with `jobs` | | ||
| | jobs | list | `nil` | Check documentation. Mutually exclusive with `target` | | ||
| | collector_files | list | `[]` | Check documentation | | ||
|
|
||
| To configure `target`, `jobs`, `collector_files` please refer to the [documentation](https://github.com/burningalchemist/sql_exporter/blob/master/documentation/sql_exporter.yml) in the source repository. These values are not set by default. | ||
|
|
||
| It's also possible to define collectors (i.e. metrics and queries) in separate files, and specify the filenames in the `collector_files` list. For that we can use `CollectorFiles` field (check `values.yaml` for the available example). |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.