Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alerting: Add MQTT notifications receiver #1746

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alexander-akhmetov
Copy link

@alexander-akhmetov alexander-akhmetov commented Aug 3, 2024

I also updated the Grafana version used for running the tests from 11.0.0 to 11.5.0.


Adds support for MQTT notifications receiver.

Example:


resource "grafana_contact_point" "mqtt" {
  name = "MQTT receiver"

  mqtt {
    broker_url     = "tcp://localhost:1883"
    client_id      = "grafana"
    topic          = "grafana/alerts"
    message_format = "json"
    username       = "user"
    password       = "password123"
    qos            = 1
    retain         = true
    tls_config {
      insecure_skip_verify = true
      ca_certificate       = "ca_cert"
      client_certificate   = "client_cert"
      client_key           = "client_key"
    }
  }
}

Copy link

github-actions bot commented Aug 3, 2024

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch from 7a17a7e to d5ebbb8 Compare August 3, 2024 10:58
@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch from d5ebbb8 to 7f6076f Compare August 13, 2024 17:50
@alexander-akhmetov alexander-akhmetov marked this pull request as ready for review August 13, 2024 18:10
@alexander-akhmetov alexander-akhmetov requested review from a team as code owners August 13, 2024 18:10
@alexander-akhmetov alexander-akhmetov requested a review from a team August 13, 2024 18:10
@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch from 7f6076f to 10bc56c Compare August 22, 2024 08:18
@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch from 10bc56c to dea5d8f Compare November 16, 2024 09:44
@alexander-akhmetov alexander-akhmetov requested a review from a team as a code owner November 16, 2024 09:44
@alexander-akhmetov alexander-akhmetov marked this pull request as draft November 16, 2024 09:44
@alexander-akhmetov alexander-akhmetov removed request for a team November 16, 2024 09:44
@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch from dea5d8f to 764f0f8 Compare November 16, 2024 09:46
@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch 3 times, most recently from 02f00e1 to d03ce7f Compare February 2, 2025 14:31
@@ -286,7 +286,7 @@ the in-screen instructions, of following [this guide](https://grafana.com/docs/g

#### Obtaining Cloud Provider API hostname

Having created the token, we can find the correct Cloud Provider API hostname by running the following script, that requires `curl` and [`jq`](https://jqlang.github.io/jq/) installed:
Having created the token, we can find the correct Cloud Provider API hostname by running the following script, that requires `curl` and [`jq`](https://jqlang.org/) installed:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make linkcheck was complaining:

Start checking at 2025-02-02 14:31:59+000

URL        `https://jqlang.github.io/jq/'
Parent URL file:///home/runner/work/terraform-provider-grafana/terraform-provider-grafana/docs/index.md, line 289, col 143
Real URL   https://jqlang.org/
Check time 0.455 seconds
Size       3KB
Warning    [http-redirected] Redirected to `https://jqlang.org/'
           status: 301 Moved Permanently.
Result     Valid: 200 OK

@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch 3 times, most recently from 6640b0a to 90d4296 Compare February 2, 2025 16:22
@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/mqtt-receiver branch from 3c02a3c to 6bfccbb Compare February 2, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants