You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Do you plan to make a plugin for Prometheus metrics? The plugin should provide a api endpoint for prometheus to scrape metrics from.
What we have made for our old logging is an api for prometheus to get count of log entries, and return that to prometheus when requested. It will also return all org limits. Then we can use that in Grafana and get notification/alarms when i.e. a limit is above a threshold. The metrics is in this format from the api:
sf_log_info_count{source_class="LimitsMetricsProvider",source_function="createMetricsForPrometheus",environment="sandbox"} 3
sf_log_error_count{source_class="LogMetricsModel",source_function="getData",environment="sandbox"} 29
sfdc_limits_dailydurablestreamingapievents{limit="200000",environment="sandbox"} 0
sfdc_limits_dailyanalyticsuploadedfilessizemb_bytes{limit="53687091200",environment="sandbox"} 0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Do you plan to make a plugin for Prometheus metrics? The plugin should provide a api endpoint for prometheus to scrape metrics from.
What we have made for our old logging is an api for prometheus to get count of log entries, and return that to prometheus when requested. It will also return all org limits. Then we can use that in Grafana and get notification/alarms when i.e. a limit is above a threshold. The metrics is in this format from the api:
sf_log_info_count{source_class="LimitsMetricsProvider",source_function="createMetricsForPrometheus",environment="sandbox"} 3
sf_log_error_count{source_class="LogMetricsModel",source_function="getData",environment="sandbox"} 29
sfdc_limits_dailydurablestreamingapievents{limit="200000",environment="sandbox"} 0
sfdc_limits_dailyanalyticsuploadedfilessizemb_bytes{limit="53687091200",environment="sandbox"} 0
Beta Was this translation helpful? Give feedback.
All reactions