Skip to content

Commit e38c012

Browse files
committed
add logzio grafana upgrade comments, and update alerting version
1 parent 0cf061a commit e38c012

File tree

7 files changed

+16
-6
lines changed

7 files changed

+16
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,6 @@ replace xorm.io/xorm => ./pkg/util/xorm
519519
// This is required in order to get notification delivery errors from the receivers API.
520520
replace github.com/prometheus/alertmanager => github.com/grafana/prometheus-alertmanager v0.25.1-0.20240208102907-e82436ce63e6
521521

522-
replace github.com/grafana/alerting => github.com/logzio/data-viz-alerting v0.0.0-20240925133815-8b8848ed6e8f
522+
replace github.com/grafana/alerting => github.com/logzio/data-viz-alerting v0.0.0-20240926134858-3220ec2366dc
523523

524524
exclude github.com/mattn/go-sqlite3 v2.0.3+incompatible

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,8 +2892,8 @@ github.com/linkedin/goavro/v2 v2.10.0 h1:eTBIRoInBM88gITGXYtUSqqxLTFXfOsJBiX8ZMW
28922892
github.com/linkedin/goavro/v2 v2.10.0/go.mod h1:UgQUb2N/pmueQYH9bfqFioWxzYCZXSfF8Jw03O5sjqA=
28932893
github.com/linode/linodego v1.25.0 h1:zYMz0lTasD503jBu3tSRhzEmXHQN1zptCw5o71ibyyU=
28942894
github.com/linode/linodego v1.25.0/go.mod h1:BMZI0pMM/YGjBis7pIXDPbcgYfCZLH0/UvzqtsGtG1c=
2895-
github.com/logzio/data-viz-alerting v0.0.0-20240925133815-8b8848ed6e8f h1:wt2nC68lHnrqc0Gsa2ORHRuo/ydIELIj42eE9cMHDFE=
2896-
github.com/logzio/data-viz-alerting v0.0.0-20240925133815-8b8848ed6e8f/go.mod h1:brTFeACal/cSZAR8XO/4LPKs7rzNfS86okl6QjSP1eY=
2895+
github.com/logzio/data-viz-alerting v0.0.0-20240926134858-3220ec2366dc h1:PwLcwpAa5kpbAOX8i6eeEJsLemW84IDopjjY3F6Enrc=
2896+
github.com/logzio/data-viz-alerting v0.0.0-20240926134858-3220ec2366dc/go.mod h1:brTFeACal/cSZAR8XO/4LPKs7rzNfS86okl6QjSP1eY=
28972897
github.com/luna-duclos/instrumentedsql v0.0.0-20181127104832-b7d587d28109/go.mod h1:PWUIzhtavmOR965zfawVsHXbEuU1G29BPZ/CB3C7jXk=
28982898
github.com/luna-duclos/instrumentedsql v1.1.2/go.mod h1:4LGbEqDnopzNAiyxPPDXhLspyunZxgPTMJBKtC6U0BQ=
28992899
github.com/luna-duclos/instrumentedsql v1.1.3/go.mod h1:9J1njvFds+zN7y85EDhN9XNQLANWwZt2ULeIC8yMNYs=

pkg/services/ngalert/api/compat_contact_points.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,16 @@ func ContactPointToContactPointExport(cp definitions.ContactPoint) (notify.APIRe
105105
errs = append(errs, err)
106106
}
107107
}
108+
109+
// LOGZ.IO GRAFANA CHANGE :: DEV-46341 - Add support for logzio opsgenie integration
108110
for _, i := range cp.LogzioOpsgenie {
109111
el, err := marshallIntegration(j, "logzio_opsgenie", i, i.DisableResolveMessage)
110112
integration = append(integration, el)
111113
if err != nil {
112114
errs = append(errs, err)
113115
}
114116
}
117+
// LOGZ.IO GRAFANA CHANGE :: end
115118
for _, i := range cp.Pagerduty {
116119
el, err := marshallIntegration(j, "pagerduty", i, i.DisableResolveMessage)
117120
integration = append(integration, el)
@@ -271,11 +274,13 @@ func parseIntegration(json jsoniter.API, result *definitions.ContactPoint, recei
271274
if err = json.Unmarshal(data, &integration); err == nil {
272275
result.Opsgenie = append(result.Opsgenie, integration)
273276
}
277+
// LOGZ.IO GRAFANA CHANGE :: DEV-46341 - Add support for logzio opsgenie integration
274278
case "logzio_opsgenie":
275279
integration := definitions.LogzioOpsgenieIntegration{DisableResolveMessage: disable}
276280
if err = json.Unmarshal(data, &integration); err == nil {
277281
result.LogzioOpsgenie = append(result.LogzioOpsgenie, integration)
278282
}
283+
// LOGZ.IO GRAFANA CHANGE :: end
279284
case "pagerduty":
280285
integration := definitions.PagerdutyIntegration{DisableResolveMessage: disable}
281286
if err = json.Unmarshal(data, &integration); err == nil {

pkg/services/ngalert/api/tooling/definitions/contact_points.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ type OpsgenieIntegration struct {
121121
Responders []OpsgenieIntegrationResponder `json:"responders,omitempty" yaml:"responders,omitempty" hcl:"responders,block"`
122122
}
123123

124+
// LOGZ.IO GRAFANA CHANGE :: DEV-46341: Add Logzio Opsgenie Integration
124125
type LogzioOpsgenieIntegration struct {
125126
DisableResolveMessage *bool `json:"-" yaml:"-" hcl:"disable_resolve_message"`
126127

@@ -134,6 +135,8 @@ type LogzioOpsgenieIntegration struct {
134135
SendTagsAs *string `json:"sendTagsAs,omitempty" yaml:"sendTagsAs,omitempty" hcl:"send_tags_as"`
135136
}
136137

138+
// LOGZ.IO GRAFANA CHANGE :: end
139+
137140
type PagerdutyIntegration struct {
138141
DisableResolveMessage *bool `json:"-" yaml:"-" hcl:"disable_resolve_message"`
139142

@@ -291,7 +294,7 @@ type ContactPoint struct {
291294
Kafka []KafkaIntegration `json:"kafka" yaml:"kafka" hcl:"kafka,block"`
292295
Line []LineIntegration `json:"line" yaml:"line" hcl:"line,block"`
293296
Opsgenie []OpsgenieIntegration `json:"opsgenie" yaml:"opsgenie" hcl:"opsgenie,block"`
294-
LogzioOpsgenie []LogzioOpsgenieIntegration `json:"logzio_opsgenie" yaml:"logzio_opsgenie" hcl:"logzio_opsgenie,block"`
297+
LogzioOpsgenie []LogzioOpsgenieIntegration `json:"logzio_opsgenie" yaml:"logzio_opsgenie" hcl:"logzio_opsgenie,block"` // LOGZ.IO GRAFANA CHANGE :: DEV-46341: Add Logzio Opsgenie Integration
295298
Pagerduty []PagerdutyIntegration `json:"pagerduty" yaml:"pagerduty" hcl:"pagerduty,block"`
296299
OnCall []OnCallIntegration `json:"oncall" yaml:"oncall" hcl:"oncall,block"`
297300
Pushover []PushoverIntegration `json:"pushover" yaml:"pushover" hcl:"pushover,block"`

pkg/services/ngalert/api/tooling/definitions/provisioning_contactpoints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type EmbeddedContactPoint struct {
9999
Name string `json:"name" binding:"required"`
100100
// required: true
101101
// example: webhook
102-
// enum: alertmanager, dingding, discord, email, googlechat, kafka, line, opsgenie, logzio_opsgenie, pagerduty, pushover, sensugo, slack, teams, telegram, threema, victorops, webhook, wecom
102+
// enum: alertmanager, dingding, discord, email, googlechat, kafka, line, opsgenie, logzio_opsgenie, pagerduty, pushover, sensugo, slack, teams, telegram, threema, victorops, webhook, wecom // LOGZ.IO GRAFANA CHANGE :: DEV-46341 - Add support for logzio opsgenie integration
103103
Type string `json:"type" binding:"required"`
104104
// required: true
105105
Settings *simplejson.Json `json:"settings" binding:"required"`

pkg/services/ngalert/notifier/channels_config/available_channels.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ func GetAvailableNotifiers() []*NotifierPlugin {
13391339
},
13401340
},
13411341
},
1342+
// LOGZ.IO GRAFANA CHANGE :: DEV-46341 - Add support for logzio opsgenie integration
13421343
{
13431344
Type: "logzio_opsgenie",
13441345
Name: "LogzioOpsGenie",
@@ -1368,6 +1369,7 @@ func GetAvailableNotifiers() []*NotifierPlugin {
13681369
},
13691370
},
13701371
},
1372+
// LOGZ.IO GRAFANA CHANGE :: end
13711373
{
13721374
Type: "webex",
13731375
Name: "Cisco Webex Teams",

public/app/plugins/datasource/alertmanager/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const receiverTypeNames: Record<string, string> = {
33
pushover: 'Pushover',
44
slack: 'Slack',
55
opsgenie: 'OpsGenie',
6-
logzio_opsgenie: 'LogzioOpsGenie',
6+
logzio_opsgenie: 'LogzioOpsGenie', // LOGZ.IO GRAFANA CHANGE :: DEV-46341 - Add Logz.io OpsGenie integration
77
webhook: 'Webhook',
88
victorops: 'VictorOps',
99
wechat: 'WeChat',

0 commit comments

Comments
 (0)