Skip to content

Instantly share code, notes, and snippets.

@corywright
Created July 3, 2018 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corywright/1acc46eee741275fcda93fcc6a065ea0 to your computer and use it in GitHub Desktop.
Save corywright/1acc46eee741275fcda93fcc6a065ea0 to your computer and use it in GitHub Desktop.
gnocchi_resources.yaml
# /usr/lib/python2.7/dist-packages/ceilometer/dispatcher/data/gnocchi_resources.yaml
resources:
- resource_type: identity
metrics:
- 'identity.authenticate.success'
- 'identity.authenticate.pending'
- 'identity.authenticate.failure'
- 'identity.user.created'
- 'identity.user.deleted'
- 'identity.user.updated'
- 'identity.group.created'
- 'identity.group.deleted'
- 'identity.group.updated'
- 'identity.role.created'
- 'identity.role.deleted'
- 'identity.role.updated'
- 'identity.project.created'
- 'identity.project.deleted'
- 'identity.project.updated'
- 'identity.trust.created'
- 'identity.trust.deleted'
- 'identity.role_assignment.created'
- 'identity.role_assignment.deleted'
- resource_type: swift_account
metrics:
- 'storage.objects.incoming.bytes'
- 'storage.objects.outgoing.bytes'
- 'storage.api.request'
- 'storage.objects.size'
- 'storage.objects'
- 'storage.objects.containers'
- 'storage.containers.objects'
- 'storage.containers.objects.size'
# /usr/lib/python2.7/dist-packages/ceilometer/data/meters.d/meters.yaml
# Identity
# NOTE(gordc): hack because jsonpath-rw-ext can't concat starting with string.
- name: $.payload.outcome - $.payload.outcome + 'identity.authenticate.' + $.payload.outcome
type: 'delta'
unit: 'user'
volume: 1
event_type:
- 'identity.authenticate'
resource_id: $.payload.initiator.id
user_id: $.payload.initiator.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment