-
Notifications
You must be signed in to change notification settings - Fork 22
Fix the property metrics for prometheus #176
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
Changes from 1 commit
f420efa
a28012f
116b227
ed34567
87b1861
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,3 +163,28 @@ Or to not have the EPICS PV Access Server listen, then: | |
|
|
||
| EPICS_PVAS_INTF_ADDR_LIST="0.0.0.0" | ||
|
|
||
| Metrics | ||
| ^^^^^^^ | ||
|
|
||
| Metrics can be exposed by setting the `management.endpoints.web.exposure.include=prometheus` property. | ||
|
|
||
| .. code-block:: | ||
|
|
||
| management.endpoints.web.exposure.include=prometheus, metrics, health, info | ||
|
|
||
| Adding the prometheus property will expose the prometheus endpoint which can be scraped by prometheus. | ||
|
|
||
| You can also set the metrics.tags to add counts of number of channels per tag. These are exposed as | ||
| `cf_channel_count{tag=tagName}` | ||
|
||
|
|
||
| .. code-block:: | ||
|
|
||
| metrics.tags=Accelerator, Beamline, Beamline1, Beamline2, Beamline3 | ||
|
|
||
| You can also set the metrics.properties to add counts of number of channels per property and value. These are exposed as | ||
| `cf_propertyName_channels_count{propertyName=propertyValue}`. | ||
|
|
||
|
|
||
| .. code-block:: | ||
|
|
||
| metrics.properties=pvStatus:Active, Inactive; archive: default, fast, slow; archiver: aa_beamline, aa_acccelerator | ||
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.
Might be good to give an explicit example of using this syntax; the application.properties file only has a single metricProperty.
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.
Added some docs.