Skip to content

Commit

Permalink
chore: doc prometheus for analytics (#291)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps authored Nov 25, 2024
1 parent cbdc34e commit 5d43f69
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions configuration/analytics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Flipt includes functionality for reporting analytical data to a configurable sto
Currently, Flipt has support for collecting data into the following storage engines:

- [ClickHouse](https://clickhouse.com/)
- [Prometheus](https://prometheus.io/)

The data that gets collected currently includes:

Expand Down Expand Up @@ -72,3 +73,33 @@ To configure Flipt to use ClickHouse for analytics, you will need to add the fol
</Tab>
</Tabs>
## Prometheus
You can use any [Prometheus](https://prometheus.io/docs/introduction/overview/) server to store your analytics data.
### Configuration
To configure Flipt to use Prometheus for analytics, you will need to add the following configuration to your `config.yml` file or environment variables:

<Tabs>
<Tab title="Environment Variables">

```bash
FLIPT_ANALYTICS_STORAGE_PROMETHEUS_ENABLED=true
FLIPT_ANALYTICS_STORAGE_PROMETHEUS_URL=http://prometheus:9090
```

</Tab>
<Tab title="Configuration YAML">

```yaml
analytics:
storage:
prometheus:
enabled: true
url: http://prometheus:9090
```

</Tab>
</Tabs>
7 changes: 7 additions & 0 deletions configuration/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,13 @@ export FLIPT_CORS_ALLOWED_ORIGINS="http://localhost:3000 http://localhost:3001"
| analytics.storage.clickhouse.enabled | Enable Clickhouse support | false | v1.37.0 |
| analytics.storage.clickhouse.url | URL to connect to clickhouse server | | v1.37.0 |

#### Analytics: Prometheus

| Property | Description | Default | Since |
| ------------------------------------ | ----------------------------------- | ------- | ------- |
| analytics.storage.prometheus.enabled | Enable Prometheus support | false | v1.52.0 |
| analytics.storage.prometheus.url | URL to connect to prometheus server | | v1.52.0 |

### Metrics

| Property | Description | Default | Since |
Expand Down

0 comments on commit 5d43f69

Please sign in to comment.