-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add examples * Specific image registry overriding * Pod Labels and Annotations in metrics and logs * Extra configuration example * Tolerations Signed-off-by: Pete Wall <[email protected]> * Fix path for test checking for image registries Signed-off-by: Pete Wall <[email protected]> * Pin helm unittest to an older version before things broke Signed-off-by: Pete Wall <[email protected]> --------- Signed-off-by: Pete Wall <[email protected]>
- Loading branch information
Showing
44 changed files
with
12,773 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
charts/k8s-monitoring/docs/examples/extra-configuration/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!-- | ||
(NOTE: Do not edit README.md directly. It is a generated file!) | ||
( To make changes, please modify values.yaml or description.txt and run `make examples`) | ||
--> | ||
# Extra Configuration | ||
|
||
This example shows how to include additional configuration components to the Alloy instances. These components are added | ||
to any existing configuration and does not replace it or modify it in any way. | ||
|
||
In the example below, note that the `discovery.kubernetes.animal_service` component discovers the Kubernetes Service by | ||
namespace and label selectors. Metrics found are then forwarded to `prometheus.remote_write.<destination-name>.receiver` | ||
for delivery. | ||
|
||
## Values | ||
|
||
```yaml | ||
--- | ||
cluster: | ||
name: extra-configuration-cluster | ||
|
||
destinations: | ||
- name: prometheus | ||
type: prometheus | ||
url: http://prometheus.prometheus.svc:9090/api/v1/write | ||
|
||
alloy-metrics: | ||
enabled: true | ||
extraConfig: | | ||
discovery.kubernetes "animal_service" { | ||
role = "service" | ||
namespaces { | ||
names = ["zoo"] | ||
} | ||
selectors { | ||
role = "service" | ||
label = ["app.kubernetes.io/name=animal-service"] | ||
} | ||
} | ||
prometheus.scrape "animal_service" { | ||
job_name = "animal_service" | ||
targets = discovery.kubernetes.animal_service.targets | ||
forward_to = [prometheus.remote_write.prometheus.receiver] | ||
} | ||
``` |
110 changes: 110 additions & 0 deletions
110
charts/k8s-monitoring/docs/examples/extra-configuration/alloy-metrics.alloy
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
charts/k8s-monitoring/docs/examples/extra-configuration/description.txt
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.