Purpose
Generate service configuration for grafana monitoring workflows.
Location
monitoring/grafana/configure.sh
Preconditions
- Required tools:
bash - Required permissions: filesystem read/write based on provided paths
- Required environment variables: none
Arguments
| Flag | Required | Default | Description |
|---|---|---|---|
--config-file PATH |
Yes | none | Output config path |
--endpoint URL |
No | http://localhost |
Service endpoint |
--namespace NAME |
No | default |
Namespace label |
--retention VALUE |
No | 30d |
Data retention window |
--scrape-interval S |
No | 30s |
Collection interval |
--dry-run |
No | false |
Print config only |
Usage
monitoring/grafana/configure.sh --config-file /tmp/grafana.yml --endpoint http://monitoring.internal --dry-run
Output
- Exit codes:
0success,2invalid arguments.