---
title: "Send data to Grafana Federal Cloud | Grafana Federal Cloud documentation"
description: "Send data to Grafana Federal Cloud When onboarding to Federal Cloud, a tenant is provisioned for you in each of the Grafana Enterprise Logs, Grafana Enterprise Metrics, and Grafana Enterprise Traces plugins. You can find these app plugins under ‘More apps’ in the Grafana menu. Each plugin tenant has separate read and write access policies. Before you can send logs, metrics, or traces, you must generate an access token for that type of data. Each access token is associated with an access policy. You can use the initially created access policy, or create a new one."
---

# Send data to Grafana Federal Cloud

When onboarding to Federal Cloud, a tenant is provisioned for you in each of the Grafana Enterprise Logs, Grafana Enterprise Metrics, and Grafana Enterprise Traces plugins. You can find these app plugins under ‘More apps’ in the Grafana menu. Each plugin tenant has separate read and write access policies. Before you can send logs, metrics, or traces, you must generate an access token for that type of data. Each access token is associated with an access policy. You can use the initially created access policy, or create a new one.

To create access policies and tokens, refer to the following documentation.

- [Metrics](/docs/enterprise-metrics/latest/set-up/set-up-gem-tenant/#create-an-access-policy)
- [Traces](/docs/enterprise-traces/latest/setup/set-up-get-tenants/#create-an-access-policy)
- [Logs](/docs/enterprise-logs/latest/setup/tenant/#create-an-access-policy)

## Send logs, metrics, and traces

You can use [Grafana Alloy](/docs/alloy/latest/) to send logs, metrics, and traces to Grafana Federal Cloud. You can use the following code to get started configuring Alloy.

### Send logs to Grafana Federal Cloud using Grafana Alloy

Alloy ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```alloy
loki.write "grafanafedcloud" {
  endpoint {
    url = "https://grafana-fed-1.fedstart.com/<myorganization>/logs/loki/api/v1/push"
    basic_auth {
      username = "<LOGS_TENANT_ID>"
      password = "<LOGS_ACCESS_TOKEN>"
    }
  }
}
```

Remember to update the URL, username, and password values according to your stack and access token. Refer to [Create an access policy](/docs/enterprise-logs/latest/setup/tenant/#create-an-access-policy).

### Send traces to Grafana Federal Cloud using Grafana Alloy

Alloy ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```alloy
otelcol.receiver.otlp "otlp_receiver" {
  grpc {
    endpoint = "0.0.0.0:4317"
  }
  http {
    endpoint = "0.0.0.0:4318"
  }
  output {
    traces = [otelcol.exporter.otlp.grafanacloud.input]
  }
}
otelcol.exporter.otlp "grafanafedcloud" {
  client {
    endpoint = "grafana-fed-1.fedstart.com:443/<myorganization>/traces"
    auth = otelcol.auth.basic.grafanacloud.handler
  }
}
otelcol.auth.basic "grafanafedcloud" {
  username = "<TRACES_TENANT_ID>"
  password = "<TRACES_ACCESS_TOKEN>"
}
```

Remember to update the endpoint, username, and password values according to your stack and access token. Refer to [Create an access policy](/docs/enterprise-traces/latest/setup/set-up-get-tenants/#create-an-access-policy).

### Send metrics to Grafana Federal Cloud using Grafana Alloy

Alloy ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```alloy
prometheus.remote_write "grafanafedcloud" {
  endpoint {
    url = "https://grafana-fed-1.fedstart.com/<myorganization>/metrics/api/v1/push"
    basic_auth {
      username = "<METRICS_TENANT_ID>"
      password = "<METRICS_ACCESS_TOKEN>"
    }
  }
}
```

Remember to update the URL, username, and password values according to your stack and access token. Refer to [Create an access policy](/docs/enterprise-metrics/latest/set-up/set-up-gem-tenant/#create-an-access-policy).

### Send metrics to Grafana Federal Cloud with Prometheus

Alloy ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```alloy
remote_write:
- url: https://grafana-fed-1.fedstart.com/<myorganization>/metrics/api/v1/push
  basic_auth:
    username: <METRICS_TENANT_ID>
    password: <METRICS_ACCESS_TOKEN>
```

Remember to update the URL, username, and password values according to your stack and access token. Refer to [Create an access policy](/docs/enterprise-metrics/latest/set-up/set-up-gem-tenant/#create-an-access-policy).
