-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add services_savingsplans_subscribed metric #18
base: main
Are you sure you want to change the base?
feat: add services_savingsplans_subscribed metric #18
Conversation
4c9dfef
to
c3a8b64
Compare
Local test of the metric with the compose is good with curl 0.0.0.0:8080/metrics | grep "ovh_exporter_services_savingsplans_subscribed" |
you forgot to add the routes needed in pkg/credentials/generate |
metric is missing some important data like period and flavor |
log messages all in lowercase like the rest of the logs |
1f5877e
to
cce9f79
Compare
"savings_plan_status": savingsPlanStatus, | ||
"savings_plan_start_date": savingsPlanPeriodStartDate, | ||
"savings_plan_end_date": savingsPlanPeriodEndDate, | ||
}).Set(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put the savingsplan size here instead
thanks for the nice documentation! |
README.md
Outdated
go run cmd/ovh-exporter/main.go credentials | ||
``` | ||
|
||
Once you have the credentials, create a `.env` file containing the following variables: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ovh-exporter.env
README.md
Outdated
@@ -19,14 +28,55 @@ export OVH_CACHE_UPDATE_INTERVAL="300" | |||
export SERVER_PORT="8080" | |||
``` | |||
|
|||
# Running | |||
To use the compose, add a `.env` file at the root of your project with the variables filled in: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ovh-exporter.env
compose.yaml
Outdated
OVH_CLOUD_PROJECT_INSTANCE_BILLING_PROJECT_IDS: "" | ||
OVH_CACHE_UPDATE_INTERVAL: "300" | ||
SERVER_PORT: "8080" | ||
env_file: ".env" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ovh-exporter.env
compose.yaml
Outdated
OVH_CACHE_UPDATE_INTERVAL: "300" | ||
SERVER_PORT: "8080" | ||
env_file: ".env" | ||
# OVH_ENDPOINT: "ovh-eu" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove these since we explain what should be contained inside the ovh-exporter.env file
cce9f79
to
bd39989
Compare
Local test successful, maybe we should add some E2E test like in kube-state-metric and a github workflow. |
Add a ovh_exporter_services_savingsplans_subscribed metric