Skip to content

Commit

Permalink
Renaming new config option
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Herms committed Mar 15, 2018
1 parent 87d557a commit 97e472f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type ReceiverConfig struct {
Components []string `yaml:"components" json:"components"`

// Label copy settings
CopyPromLabels bool `yaml:"copy_prom_labels" json:"copy_prom_labels"`
AddGroupLabels bool `yaml:"add_group_labels" json:"add_group_labels"`

// Catches all undefined fields and must be empty after parsing.
XXX map[string]interface{} `yaml:",inline" json:"-"`
Expand Down
2 changes: 1 addition & 1 deletion config/jiralert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ receivers:
# JIRA project to create the issue in. Required.
project: AB
# Copy all Prometheus labels into separate JIRA labels.
copy_prom_labels: false
add_group_labels: false

- name: 'jira-xy'
project: XY
Expand Down
2 changes: 1 addition & 1 deletion notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (r *Receiver) Notify(data *alertmanager.Data) (bool, error) {
}

// Add Labels
if r.conf.CopyPromLabels {
if r.conf.AddGroupLabels {
for k, v := range data.GroupLabels {
issue.Fields.Labels = append(issue.Fields.Labels, fmt.Sprintf("%s=\"%q\"", k, v))
}
Expand Down

0 comments on commit 97e472f

Please sign in to comment.