-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example templates, which shows the usage of the Prometheus and Elasticsearch plugin for the Kubernetes resource metrics and Istio. We also slightly improved the Prometheus variable view, by showing the variable name within the select box.
- Loading branch information
1 parent
4f7e6a4
commit d4e97c3
Showing
6 changed files
with
439 additions
and
4 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
30 changes: 30 additions & 0 deletions
30
deploy/templates/elasticsearch-application-and-istio-logs.yaml
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,30 @@ | ||
apiVersion: kobs.io/v1alpha1 | ||
kind: Template | ||
metadata: | ||
name: elasticsearch-application-and-istio-logs | ||
spec: | ||
description: Display the logs of your Application and the Istio Sidecar via Elasticsearch. | ||
variables: | ||
- name: name | ||
description: The name of your Application. | ||
- name: namespace | ||
description: The namespace of your Application. | ||
plugin: | ||
name: Elasticsearch | ||
elasticsearch: | ||
queries: | ||
- name: Application Logs | ||
query: "kubernetes.namespace: << namespace >> AND kubernetes.labels.app: << name >> AND NOT kubernetes.container.name: istio-proxy" | ||
- name: Istio Sidecar Logs | ||
query: "kubernetes.namespace: << namespace >> AND kubernetes.labels.app: << name >> AND kubernetes.container.name: istio-proxy" | ||
fields: | ||
- "kubernetes.pod.name" | ||
- "content.authority" | ||
- "content.route_name" | ||
- "content.protocol" | ||
- "content.method" | ||
- "content.path" | ||
- "content.response_code" | ||
- "content.upstream_service_time" | ||
- "content.bytes_received" | ||
- "content.bytes_sent" |
Oops, something went wrong.