Skip to content

Commit

Permalink
Merge pull request #58 from gloeckchen404/add-api-v3
Browse files Browse the repository at this point in the history
Add option for v3 API
  • Loading branch information
baurmatt authored Sep 11, 2024
2 parents 91412cf + 7f3970c commit 900fb01
Show file tree
Hide file tree
Showing 11 changed files with 1,986 additions and 1,533 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ Then run the exporter:
./bin/syselevenexporter
```
The exporter uses the API version v1 by default. If you want to change to the current API version v3, you can run the exporter with:
```sh
./bin/syselevenexporter --api-version v3
```
See here for more information about the [API for Quota and Usage Information](https://docs.syseleven.de/syseleven-stack/en/reference/get-quota-info).
A Docker image is available at `syseleven/syseleven-exporter:<TAG>` and can be retrieved via:
```sh
Expand All @@ -75,7 +83,7 @@ docker pull syseleven/syseleven-exporter:<TAG>
| syseleven_network_floating_ips_used | Number of used floating IPs per `region` and `project` |
| syseleven_network_loadbalancers_total | Quota for number of load balancers per `region` and `project` |
| syseleven_network_loadbalancers_used | Number of used load balancers per `region` and `project` |
| syseleven_s3_space_total_bytes | Quota for S3 space per `region` and `project` in bytes |
| syseleven_s3_space_total_bytes | Quota for S3 space per `region`, `project` and `type` in bytes |
| syseleven_s3_space_used_bytes | Used S3 space per `region` and `project` in bytes |
| syseleven_volume_space_total_gigabytes | Quota for volume space per `region` and `project` in gigabytes |
| syseleven_volume_space_used_gigabytes | Number of used volume space per `region` and `project` in gigabytes |
Expand Down
2 changes: 2 additions & 0 deletions charts/syseleven-exporter-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ openstack.password
openstack.projectId
```

The exporter uses the API version v1 by default. If you want to change to the current API version v3, you can adjust the API version with `openstack.apiversion`. See here for more information about the [API for Quota and Usage Information](https://docs.syseleven.de/syseleven-stack/en/reference/get-quota-info).

### Prometheus

If you want a [Prometheus ServiceMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#servicemonitor) you can use the `prometheus.serviceMonitor.enabled` flag, which is false by default. The default `serviceMonitor.interval` is 10 minutes, since the API is only polled once per hour by the exporter pod.
Expand Down
Loading

0 comments on commit 900fb01

Please sign in to comment.