prometheus / prometheus/alertmanager

template.Data does not export GroupKey

Open
#2,526 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component/templating stale
Dominant language
Go
Stars
8.6k
Forks
2.5k
Avg merge
2d 6h
Merged PRs (30d)
61

Description

Is it intended that https://github.com/prometheus/alertmanager/blob/10757eb5fb78c5c58586812721e9833b0d8500ee/template/template.go#L231 does not export GroupKey, as defined here:

https://prometheus.io/docs/alerting/latest/configuration/#webhook_config

I'm writing a webhook receiver and had to define my own Data struct because I want to access that field

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read template/template.go around line 231 and compare template.Data with the webhook configuration documentation linked in the issue. Confirm whether GroupKey should be part of the exported data available to webhook receivers, then verify the implementation and documented webhook fields agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.