Skip to content

Commit

Permalink
Added Loki Metrics to Allow List (#535)
Browse files Browse the repository at this point in the history
* Added Loki Metrics to Allow List

* Regenerated Output

* Regenerated Docs
  • Loading branch information
bentonam authored May 28, 2024
1 parent 4fcddeb commit 8421151
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 6 additions & 1 deletion charts/k8s-monitoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ The Prometheus and Loki services may be hosted on the same cluster, or remotely
|-----|------|---------|-------------|
| logs.cluster_events.enabled | bool | `true` | Scrape Kubernetes cluster events |
| logs.cluster_events.extraConfig | string | `""` | Extra configuration that will be added to the Grafana Alloy for Cluster Events configuration file. This value is templated so that you can refer to other values from this file. This cannot be used to modify the generated configuration values, only append new components. See [Adding custom Flow configuration](#adding-custom-flow-configuration) for an example. |
| logs.cluster_events.extraStageBlocks | string | `""` | Stage blocks to be added to the loki.process component for cluster events. ([docs](https://grafana.com/docs/alloy/latest/reference/components/loki.process/#blocks)) This value is templated so that you can refer to other values from this file. |
| logs.cluster_events.logFormat | string | `"logfmt"` | Log format used to forward cluster events. Allowed values: `logfmt` (default), `json`. |
| logs.cluster_events.logToStdout | bool | `false` | Logs the cluster events to stdout. Useful for debugging. |
| logs.cluster_events.namespaces | list | `[]` | List of namespaces to watch for events (`[]` means all namespaces) |
Expand Down Expand Up @@ -706,6 +705,12 @@ The Prometheus and Loki services may be hosted on the same cluster, or remotely
| traces.receiver.filters | object | `{"span":[],"spanevent":[]}` | Apply a filter to traces received via the OTLP or OTLP HTTP receivers. ([docs](https://grafana.com/docs/alloy/latest/reference/components/otelcol.processor.filter/)) |
| traces.receiver.transforms | object | `{"resource":[],"span":[],"spanevent":[]}` | Apply a transformation to traces received via the OTLP or OTLP HTTP receivers. ([docs](https://grafana.com/docs/alloy/latest/reference/components/otelcol.processor.transform/)) |

### Other Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| logs.cluster_events.extraStageBlocks | string | `""` | Stage blocks to be added to the loki.process component for cluster events. ([docs](https://grafana.com/docs/alloy/latest/reference/components/loki.process/#blocks)) This value is templated so that you can refer to other values from this file. |

## Customizing the configuration

There are several options for customizing the configuration generated by this chart. This can be used to add extra
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
- go_gc_duration_seconds_count
- go_goroutines
- go_memstats_heap_inuse_bytes
- loki_write_batch_retries_total
- loki_write_dropped_bytes_total
- loki_write_dropped_entries_total
- loki_write_encoded_bytes_total
- loki_write_mutated_bytes_total
- loki_write_mutated_entries_total
- loki_write_request_duration_seconds_bucket
- loki_write_sent_bytes_total
- loki_write_sent_entries_total
- process_cpu_seconds_total
- process_start_time_seconds
- prometheus_remote_storage_enqueue_retries_total
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-metrics-tuning/metrics.alloy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/custom-metrics-tuning/output.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8421151

Please sign in to comment.