-
Notifications
You must be signed in to change notification settings - Fork 64
OCI Monitoring Post Metric example #28
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
Conversation
|
Hi @naikvenu, Can we have an example for TypeScript as well? Thank you. |
Thanks Walt, Will post it by tommorow. |
|
@waruwaruwaru have posted typescript example. |
|
@waruwaruwaru Changed the values to generic. |
| "namespace": "mushopnamespace", | ||
| "resourceGroup": "mushop-rg", | ||
| "compartmentId": compartmentId, | ||
| "name": "mushop-401-http-error", | ||
| "dimensions": { | ||
| "appName": "Mushop", | ||
| "podName": "mushop-storefront" | ||
| }, | ||
| "metadata": { | ||
| "unit": "count", | ||
| "displayName": "MuShop Authorization errors" | ||
| }, |
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.
For the namespace, resourceGroup, name, dimensions.appName, dimensions.podName, and metadata.displayName. Can we give those values a generic value so customers looking at this example know they can input their own?
i.e: namespace: "your_namespace_here", resourceGroup: "your_resource_group", etc.
This is an example to Post custom metric to OCI monitoring.
https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/datatypes/MetricDataDetails