-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from arangodb/metrics-example
Added examples for exposing metrics to Prometheus
- Loading branch information
Showing
4 changed files
with
44 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# Metrics | ||
|
||
TBD | ||
The ArangoDB Kubernetes Operator (`kube-arangodb`) exposes metrics of | ||
its operations in a format that is compatible with [Prometheus](https://prometheus.io). | ||
|
||
The metrics are exposed through HTTPS on port `8528` under path `/metrics`. | ||
|
||
Look at [examples/metrics](https://github.com/arangodb/kube-arangodb/tree/master/examples/metrics) | ||
for examples of `Services` and `ServiceMonitors` you can use to integrate | ||
with Prometheus through the [Prometheus-Operator by CoreOS](https://github.com/coreos/prometheus-operator). |
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,34 @@ | ||
# This example shows how to integrate with the Prometheus Operator | ||
# to bring metrics from kube-arangodb to Prometheus. | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: arango-deployment-operator | ||
labels: | ||
app: arango-deployment-operator | ||
spec: | ||
selector: | ||
app: arango-deployment-operator | ||
ports: | ||
- name: metrics | ||
port: 8528 | ||
|
||
--- | ||
|
||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: arango-deployment-operator | ||
labels: | ||
team: frontend | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: arango-deployment-operator | ||
endpoints: | ||
- port: metrics | ||
scheme: https | ||
tlsConfig: | ||
insecureSkipVerify: true | ||
|
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