Skip to content

feat: grafana component#183

Open
bornast wants to merge 4 commits intomasterfrom
feat/grafana-comp
Open

feat: grafana component#183
bornast wants to merge 4 commits intomasterfrom
feat/grafana-comp

Conversation

@bornast
Copy link
Member

@bornast bornast commented Mar 16, 2026

This PR introduces the Grafana builder and component. It's the first in a series of upcoming PRs.
Dashboard configuration will be covered in the next one.
To instantiate the Grafana component, the following config or env variables need to be set: GRAFANA_URL, GRAFANA_AUTH, GRAFANA_CLOUD_ACCESS_POLICY_TOKEN, GRAFANA_AWS_ACCOUNT_ID.

@bornast bornast requested review from droguljic and mandryllo March 16, 2026 13:36
export namespace Grafana {
export type PrometheusConfig = {
prometheusEndpoint: pulumi.Input<string>;
region: pulumi.Input<string>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should region be optional and fallback to the current AWS region used by the stack?

@bornast bornast requested review from droguljic and mandryllo March 17, 2026 13:10
Copy link
Collaborator

@mandryllo mandryllo left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +11 to +13
prometheusEndpoint: pulumi.Input<string>;
region?: string;
prometheusPluginVersion?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't see the value in prefixing with prometheus here :bowtie:

this.prometheusDataSource = new grafana.oss.DataSource(
`${name}-prometheus-datasource`,
{
type: 'grafana-amazonprometheus-datasource',
Copy link
Collaborator

Choose a reason for hiding this comment

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

One last thing, I would add a name here so debugging on grafana cloud would be easier (without it it will set the name to something like aws-prometheus-7ee0398)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants