|
|
4 tháng trước cách đây | |
|---|---|---|
| .. | ||
| pkg | d3bd2fd27f ResourceQuotas support: KubeModel types, source, exporter (#3435) | 5 tháng trước cách đây |
| README.md | 6343e2c9a9 docs: add sharded Prometheus best practices and warnings for global e… (#3244) | 9 tháng trước cách đây |
| go.mod | 8be8620c63 bump dependabot dependencies (#3506) | 4 tháng trước cách đây |
| go.sum | 8be8620c63 bump dependabot dependencies (#3506) | 4 tháng trước cách đây |
The OpenCost Prometheus data source is an implementation which provides OpenCost with the metrics and metadata required to calculate cost allocation. Prometheus provides longer retention periods and more detailed metrics than the OpenCost Collector, which is useful for historical analysis and cost forecasting.
If you are running Prometheus in a sharded (HA) setup:
PROMETHEUS_SERVER_ENDPOINT to a global query endpoint that aggregates all shards, such as Thanos Query, Cortex Query Frontend, or Mimir Query Frontend.Example:
export PROMETHEUS_SERVER_ENDPOINT="http://thanos-query-frontend:9090"
For more details, see the OpenCost documentation and the documentation for your query aggregator.