-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pete Wall <[email protected]>
- Loading branch information
Showing
74 changed files
with
2,814 additions
and
109 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
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# mysql | ||
|
||
## Values | ||
|
||
### Exporter Settings | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| exporter.collectors | list | `["heartbeat","mysql.user"]` | The list of collectors to enable for the MySQL Exporter ([Documentation](https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.exporter.mysql/#supported-collectors)). | | ||
| exporter.dataSource | object | `{"auth":{"password":"","passwordFrom":"","passwordKey":"password","username":"","usernameFrom":"","usernameKey":"username"},"host":"","port":3306}` | The data source to use for the MySQL Exporter. | | ||
| exporter.dataSource.auth.password | string | `""` | The password to use for the MySQL connection. | | ||
| exporter.dataSource.auth.passwordFrom | string | `""` | Raw config for accessing the password. | | ||
| exporter.dataSource.auth.passwordKey | string | `"password"` | The key for storing the password in the secret. | | ||
| exporter.dataSource.auth.username | string | `""` | The username to use for the MySQL connection. | | ||
| exporter.dataSource.auth.usernameFrom | string | `""` | Raw config for accessing the username. | | ||
| exporter.dataSource.auth.usernameKey | string | `"username"` | The key for storing the username in the secret. | | ||
| exporter.dataSource.host | string | `""` | The MySQL host to connect to. | | ||
| exporter.dataSource.port | int | `3306` | The MySQL port to connect to. | | ||
| exporter.dataSourceName | string | `""` | The data source string to use for the MySQL Exporter. | | ||
|
||
### Logs Settings | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| logs.enabled | bool | `true` | Whether to enable special processing of MySQL pod logs. | | ||
| logs.labelSelectors | object | `{}` | Label selectors to choose the set of pods to gather logs from for this MySQL Instance. Example: `app.kubernetes.io/name: mysql` | | ||
|
||
### Metric Processing Settings | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| maxCacheSize | string | `100000` | Sets the max_cache_size for prometheus.relabel component. This should be at least 2x-5x your largest scrape target or samples appended rate. ([docs](https://grafana.com/docs/alloy/latest/reference/components/prometheus.relabel/#arguments)) Overrides global.maxCacheSize | | ||
| metricsTuning.excludeMetrics | list | `[]` | Metrics to drop. Can use regular expressions. | | ||
| metricsTuning.includeMetrics | list | `[]` | Metrics to keep. Can use regular expressions. | | ||
|
||
### General Settings | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| name | string | `""` | Name for this MySQL instance. | | ||
|
||
### Scrape Settings | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| scrapeInterval | string | `60s` | How frequently to scrape metrics from MySQL Exporter. | | ||
|
||
### Secret | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| secret.create | bool | `true` | Whether to create a secret to store credentials for this MySQL integration instance. | | ||
| secret.embed | bool | `false` | If true, skip secret creation and embed the credentials directly into the configuration. | | ||
| secret.name | string | `""` | The name of the secret to create. | | ||
| secret.namespace | string | `""` | The namespace for the secret. | |
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
94 changes: 94 additions & 0 deletions
94
charts/feature-integrations/integrations/mysql-values.yaml
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,94 @@ | ||
--- | ||
# -- Name for this MySQL instance. | ||
# @section -- General Settings | ||
name: "" | ||
|
||
# Settings for log gathering using the Pod Logs feature | ||
logs: | ||
# -- Whether to enable special processing of MySQL pod logs. | ||
# @section -- Logs Settings | ||
enabled: true | ||
|
||
# -- Label selectors to choose the set of pods to gather logs from for this MySQL Instance. | ||
# Example: | ||
# `app.kubernetes.io/name: mysql` | ||
# @section -- Logs Settings | ||
labelSelectors: {} | ||
|
||
# Settings for the Alloy embedded MySQL Exporter | ||
exporter: | ||
# -- The data source string to use for the MySQL Exporter. | ||
# @section -- Exporter Settings | ||
dataSourceName: "" | ||
|
||
# -- The data source to use for the MySQL Exporter. | ||
# @section -- Exporter Settings | ||
dataSource: | ||
# -- The MySQL host to connect to. | ||
# @section -- Exporter Settings | ||
host: "" | ||
# -- The MySQL port to connect to. | ||
# @section -- Exporter Settings | ||
port: 3306 | ||
auth: | ||
# -- The username to use for the MySQL connection. | ||
# @section -- Exporter Settings | ||
username: "" | ||
# -- The key for storing the username in the secret. | ||
# @section -- Exporter Settings | ||
usernameKey: "username" | ||
# -- Raw config for accessing the username. | ||
# @section -- Exporter Settings | ||
usernameFrom: "" | ||
# -- The password to use for the MySQL connection. | ||
# @section -- Exporter Settings | ||
password: "" | ||
# -- The key for storing the password in the secret. | ||
# @section -- Exporter Settings | ||
passwordKey: "password" | ||
# -- Raw config for accessing the password. | ||
# @section -- Exporter Settings | ||
passwordFrom: "" | ||
|
||
# -- The list of collectors to enable for the MySQL Exporter ([Documentation](https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.exporter.mysql/#supported-collectors)). | ||
# @section -- Exporter Settings | ||
collectors: | ||
- heartbeat | ||
- mysql.user | ||
|
||
secret: | ||
# -- (bool) Whether to create a secret to store credentials for this MySQL integration instance. | ||
# @default -- `true` | ||
# @section -- Secret | ||
create: | ||
# -- If true, skip secret creation and embed the credentials directly into the configuration. | ||
# @section -- Secret | ||
embed: false | ||
# -- The name of the secret to create. | ||
# @section -- Secret | ||
name: "" | ||
# -- The namespace for the secret. | ||
# @section -- Secret | ||
namespace: "" | ||
|
||
# -- How frequently to scrape metrics from MySQL Exporter. | ||
# @default -- `60s` | ||
# @section -- Scrape Settings | ||
scrapeInterval: | ||
|
||
# Adjustments to the scraped metrics to filter the amount of data sent to storage. | ||
metricsTuning: | ||
# -- Metrics to keep. Can use regular expressions. | ||
# @section -- Metric Processing Settings | ||
includeMetrics: [] | ||
# -- Metrics to drop. Can use regular expressions. | ||
# @section -- Metric Processing Settings | ||
excludeMetrics: [] | ||
|
||
# -- Sets the max_cache_size for prometheus.relabel component. | ||
# This should be at least 2x-5x your largest scrape target or samples appended rate. | ||
# ([docs](https://grafana.com/docs/alloy/latest/reference/components/prometheus.relabel/#arguments)) | ||
# Overrides global.maxCacheSize | ||
# @default -- `100000` | ||
# @section -- Metric Processing Settings | ||
maxCacheSize: |
105 changes: 105 additions & 0 deletions
105
charts/feature-integrations/schema-mods/definitions/mysql-integration.schema.json
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,105 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"exporter": { | ||
"type": "object", | ||
"properties": { | ||
"collectors": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"dataSource": { | ||
"type": "object", | ||
"properties": { | ||
"auth": { | ||
"type": "object", | ||
"properties": { | ||
"password": { | ||
"type": "string" | ||
}, | ||
"passwordFrom": { | ||
"type": "string" | ||
}, | ||
"passwordKey": { | ||
"type": "string" | ||
}, | ||
"username": { | ||
"type": "string" | ||
}, | ||
"usernameFrom": { | ||
"type": "string" | ||
}, | ||
"usernameKey": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"host": { | ||
"type": "string" | ||
}, | ||
"port": { | ||
"type": "integer" | ||
} | ||
} | ||
}, | ||
"dataSourceName": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"logs": { | ||
"type": "object", | ||
"properties": { | ||
"enabled": { | ||
"type": "boolean" | ||
}, | ||
"labelSelectors": { | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
"maxCacheSize": { | ||
"type": "null" | ||
}, | ||
"metricsTuning": { | ||
"type": "object", | ||
"properties": { | ||
"excludeMetrics": { | ||
"type": "array" | ||
}, | ||
"includeMetrics": { | ||
"type": "array" | ||
} | ||
} | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"scrapeInterval": { | ||
"type": "null" | ||
}, | ||
"secret": { | ||
"type": "object", | ||
"properties": { | ||
"create": { | ||
"type": "null" | ||
}, | ||
"embed": { | ||
"type": "boolean" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"type": { | ||
"type": "string", | ||
"const": "mysql" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.