Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-graphite-scaled-docs #423

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions content/docs/2.3/scalers/graphite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
+++
title = "Graphite"
layout = "scaler"
availability = "v1.0+"
maintainer = "Community"
description = "Scale applications based on Graphite."
go_file = "graphite_scaler"
+++

### Trigger Specification

This specification describes the `graphite` trigger that scales based on a Graphite.

```yaml
triggers:
- type: graphite
metadata:
# Required
serverAddress: http://<graphite-host>:81
metricName: request-count
query: stats.counters.http.hello-world.request.count.count # Note: query must return a vector/scalar single element response
threshold: '100'
queryTime: '-10minutes'
```

**Parameter list:**

- `serverAddress` - Address of Graphite
- `metricName` - Metric name to use
- `query` - Query to run
- `threshold` - Value to start scaling for
- `queryTime` - Query Time to from


### Example

```yaml
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: graphite-scaledobject
namespace: default
spec:
scaleTargetRef:
name: my-deployment
triggers:
- type: graphite
metadata:
serverAddress: http://<graphite-host>:9090
metricName: request-count
threshold: '100'
query: stats.counters.http.hello-world.request.count.count
queryTime: '-10minutes'
```