Skip to content

Commit

Permalink
fix(configuration): Use prometheus-rds-exporter.yaml instead of .prom…
Browse files Browse the repository at this point in the history
…etheus-rds-exporter.yaml

**BREAKINGCHANGE** to use consistency with other services
  • Loading branch information
vmercierfr committed Nov 1, 2023
1 parent 28428a1 commit 2890ab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ Grafana dashoards are available on Grafana labs:

## Configuration

Configuration could be defined in `.prometheus-rds-exporter.yaml` or environment variables (format `PROMETHEUS_RDS_EXPORTER_<PARAMETER_NAME>`).
Configuration could be defined in `prometheus-rds-exporter.yaml` or environment variables (format `PROMETHEUS_RDS_EXPORTER_<PARAMETER_NAME>`).

| Parameter | Description | Default |
| --- | --- | --- |
| aws-assume-role-arn | AWS IAM ARN role to assume to fetch metrics | |
| aws-assume-role-session | AWS assume role session name | prometheus-rds-exporter |
| collect-instances-metrics | Collect AWS instances metrics (AWS Cloudwatch API) | true |
| collect-instance-metrics | Collect AWS instances metrics (AWS Cloudwatch API) | true |
| collect-instance-types | Collect AWS instance types information (AWS EC2 API) | true |
| collect-logs-size | Collect AWS instances logs size (AWS RDS API) | true |
| collect-maintenances | Collect AWS instances maintenances (AWS RDS API) | true |
Expand Down Expand Up @@ -390,10 +390,10 @@ See [Development environment](#development-environment) to start the Prometheus
```bash
# Copy configuration template
cp /usr/share/prometheus-rds-exporter/prometheus-rds-exporter.yaml.sample /var/lib/prometheus-rds-exporter/.prometheus-rds-exporter.yaml
cp /usr/share/prometheus-rds-exporter/prometheus-rds-exporter.yaml.sample /var/lib/prometheus-rds-exporter/prometheus-rds-exporter.yaml
# Edit configuration
vim /var/lib/prometheus-rds-exporter/.prometheus-rds-exporter.yaml
vim /var/lib/prometheus-rds-exporter/prometheus-rds-exporter.yaml
# Restart service
systemctl restart prometheus-rds-exporter
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func NewRootCommand() (*cobra.Command, error) {

cobra.OnInitialize(initConfig)

cmd.Flags().StringVarP(&cfgFile, "config", "c", "", "config file (default is $HOME/.prometheus-rds-exporter.yaml)")
cmd.Flags().StringVarP(&cfgFile, "config", "c", "", "config file (default is $HOME/prometheus-rds-exporter.yaml)")
cmd.Flags().BoolP("debug", "d", false, "Enable debug mode")
cmd.Flags().StringP("log-format", "l", "json", "Log format (text or json)")
cmd.Flags().StringP("metrics-path", "", "/metrics", "Path under which to expose metrics")
Expand Down Expand Up @@ -215,7 +215,7 @@ func initConfig() {
viper.AddConfigPath(".")
viper.AddConfigPath(home)
viper.SetConfigType("yaml")
viper.SetConfigName(".prometheus-rds-exporter")
viper.SetConfigName("prometheus-rds-exporter")
}

if err := viper.ReadInConfig(); err == nil {
Expand Down

0 comments on commit 2890ab7

Please sign in to comment.