---
title: "Manage Knowledge Graph in Grafana Cloud using Terraform | Grafana Cloud documentation"
description: "Manage Grafana Cloud Knowledge Graph using Terraform"
---

# Manage Knowledge Graph using Terraform

Use Terraform to manage Grafana Cloud Knowledge Graph resources as code. Configure the Knowledge Graph stack, notification alerts, suppressed assertions, custom model rules, log configurations, and threshold configurations using infrastructure as code best practices.

* * *

## Overview

Terraform enables you to manage [Grafana Cloud Knowledge Graph](/docs/grafana-cloud/knowledge-graph/) resources using infrastructure as code. With Terraform, you can define, version control, and deploy Knowledge Graph configurations including stack onboarding, alert rules, suppression policies, entity models, log, trace, and profile correlations, and thresholds.

## Explore

[Get started with Terraform  
\
Learn how to set up Terraform provider and configure your environment for managing Knowledge Graph resources.](./getting-started/)

[Knowledge Graph stack  
\
Configure the Knowledge Graph stack with token provisioning, dataset configuration, and stack enablement.](./knowledge-graph-stack/)

[Notification alerts  
\
Configure notification alerts to manage how alerts are processed and routed in your Knowledge Graph.](./notification-alerts/)

[Suppressed assertions  
\
Define suppression rules to temporarily disable specific alerts during maintenance windows or testing.](./suppressed-assertions/)

[Custom model rules  
\
Create custom entity models and define how entities are discovered based on Prometheus queries.](./custom-model-rules/)

[Log configurations  
\
Configure log data correlation with entities using data source mappings and filtering options.](./log-configurations/)

[Trace configurations  
\
Configure trace data correlation with entities using data source mappings and filtering options.](./trace-configurations/)

[Profile configurations  
\
Set up profile data correlation with entities using data source mappings and filtering options.](./profile-configurations/)

[Thresholds  
\
Set custom thresholds for request, resource, and health assertions to monitor your services.](./thresholds/)

[Prometheus rules  
\
Define custom Prometheus recording and alerting rules that are evaluated against your metrics data.](./prometheus-rules/)

* * *

## Related resources

- [Grafana Terraform Provider Documentation](https://registry.terraform.io/providers/grafana/grafana/latest/docs)
- [Knowledge Graph Documentation](/docs/grafana-cloud/knowledge-graph/)
- [Terraform Best Practices](https://www.terraform.io/docs/cloud/guides/recommended-practices/index.html)
