Skip to content

Commit

Permalink
Make batch scraping configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfgo committed Oct 2, 2024
1 parent 14c11c9 commit b3f81cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions promitor-agent-scraper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ their default values.
| `azureMonitor.logging.enabled` | Indication whether or not to provide logs on the integration with Azure Monitor and its APIs | `false` |
| `azureMonitor.logging.logLevel` | Minimum level of logging for Azure Monitor interactions | N/A |
| `azureMonitor.integration.useAzureMonitorSdk` | Whether to use the Azure Monitor SDK for scraping; alternative is the legacy Azure Management Library | `true`
| `azureMonitor.integration.metricsBatching.enabled` | Whether to scrape metrics in batch mode | `false`
| `azureMonitor.integration.metricsBatching.maxBatchSize` | Max number of resources within a batch | `50`
| `azureMonitor.integration.metricsBatching.azureRegion` | Azure region of resource targets for batching |
| `azureMonitor.integration.history.startingFromInHours` | Defines the amount of hours Promitor will use to define the starting point of the time window used for metric queries. | N/A |
| `rbac.create` | If true, create & use RBAC resources | `true` |
| `rbac.podSecurityPolicyEnabled` | Create pod security policy resources | `false` |
Expand Down
8 changes: 7 additions & 1 deletion promitor-agent-scraper/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,14 @@ data:
{{- end }}
isEnabled: {{ .Values.azureMonitor.logging.enabled | quote }}
{{- end }}
{{- if .Values.azureMonitor.integration.history.startingFromInHours }}
{{- if or .Values.azureMonitor.logging.enabled .Values.azureMonitor.integration.history.startingFromInHours .Values.azureMonitor.integration.useAzureMonitorSdk}}
integration:
{{- if .Values.azureMonitor.integration.metricsBatching.enabled }}
metricsBatching:
enabled: true
maxBatchSize: {{ .Values.azureMonitor.integration.metricsBatching.maxBatchSize }}
azureRegion: {{ .Values.azureMonitor.integration.metricsBatching.azureRegion }}
{{- end }}
useAzureMonitorSdk: {{ .Values.azureMonitor.integration.useAzureMonitorSdk | quote}}
history:
startingFromInHours: {{ .Values.azureMonitor.integration.history.startingFromInHours }}
Expand Down

0 comments on commit b3f81cd

Please sign in to comment.