Skip to content

Commit

Permalink
First iteration of generate-metrics script
Browse files Browse the repository at this point in the history
  • Loading branch information
kidk committed May 31, 2018
1 parent 2bcca9b commit 0ef3929
Show file tree
Hide file tree
Showing 110 changed files with 6,132 additions and 3,521 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ exclude:
- vendor
- Gemfile
- run-local.sh
- generate-metrics.py

# Collections
collections:
Expand Down
1 change: 1 addition & 0 deletions _docs_agent/plugins/_technologies.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<div class="col-sm-3 col-md-2 technology"><a href="{{ site.baseurl }}/agent/plugins/rabbitmq"><img src="/gfx/agent/rabbitmq.png" alt="RabbitMQ icon"> RabbitMQ</a></div>
<div class="col-sm-3 col-md-2 technology"><a href="{{ site.baseurl }}/agent/plugins/activemq"><img src="/gfx/agent/activemq.png" alt="ActiveMQ icon"> ActiveMQ</a></div>
<div class="col-sm-3 col-md-2 technology"><a href="{{ site.baseurl }}/agent/plugins/kafka"><img src="/gfx/agent/kafka.png" alt="Kafka icon"> Kafka</a></div>
<div class="col-sm-3 col-md-2 technology"><a href="{{ site.baseurl }}/agent/plugins/zookeeper"><img src="/gfx/agent/zookeeper.png" alt="Zookeeper icon"> Zookeeper</a></div>
<div class="col-sm-3 col-md-2 technology technology-duplicate"><a href="{{ site.baseurl }}/agent/plugins/redis"><img src="/gfx/agent/redis.png" alt="Redis icon"> Redis</a></div>
<div class="col-sm-12 technology-header"><h3>Resource monitoring</h3></div>
<div class="col-sm-3 col-md-2 technology"><a href="{{ site.baseurl }}/agent/plugins/resources"><img src="/gfx/agent/resources.png" alt="Resources icon"> Resources</a></div>
Expand Down
51 changes: 6 additions & 45 deletions _docs_agent/plugins/activemq.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,48 +56,9 @@ The plugin uses the STOMP protocol in order to send and receive messages from th
{% endhighlight %}
The STOMP port and an optional login and password need to be provided. Also an existing queue should be specified. This queue should be dedicated for this check, since we will insert and retrieve messages from it.

## Metrics

| Metric name | Metric unit |
|--------------------------------------------------------------------------------------------------------------|-------------|
| Number of producers per queue | # |
| ActiveMQ daemon thread count | # |
| ActiveMQ garbage collection count | # |
| ActiveMQ garbage collection time | s |
| ActiveMQ number of queues | # |
| ActiveMQ number of topics | # |
| ActiveMQ os free physical memory size | b |
| ActiveMQ os max open file descriptor count | # |
| ActiveMQ os open file descriptor count | # |
| ActiveMQ os process cpu load | % |
| ActiveMQ os total physical memory size | b |
| ActiveMQ peak thread count | # |
| ActiveMQ thread count | # |
| ActiveMQ total started thread count | # |
| ActiveMQ uptime | # |
| Average time that messages have been blocked | s |
| Number of blocked messages | # |
| Number of consumers per queue | # |
| Number of producers publishing to this topic | # |
| The amount of time on average that messages remained enqueued | s |
| The average size of messages on this queue | b |
| The average size of messages on this topic | b |
| The message dequeue rate for this topic | # |
| The message enqueue rate for this queue | # |
| The message enqueue rate for this topic | # |
| The number of consumers subscribed to this topic | # |
| The number of messages in the queue that have yet to be consumed | # |
| The number of messages in the topic that have yet to be consumed | # |
| The number of messages that have been added over the lifetime of this queue | # |
| The number of messages that have been added over the lifetime of this topic | # |
| The number of messages that have been dispatched and are currently awaiting acknowledgment from the consumer | # |
| The number of messages that have been dispatched and are currently awaiting acknowledgment from the consumer | # |
| The number of messages that have been dispatched to consumers for this queue | # |
| The number of messages that have been dispatched to consumers for this topic | # |
| The number of messages that have been forwarded from this queue to a networked broker | # |
| The number of messages that have been forwarded from this topic to a networked broker | # |
| The number of messages that have been successfully acknowledged by consumers for this queue | # |
| The number of messages that have been successfully acknowledged by consumers for this topic | # |
| The number of messages that have expired from this queue | # |
| The number of messages that have expired from this topic | # |
| The of message dequeue rate for this queue | # |

<!-- Auto generated metrics view -->
<div class="metrics">
{% capture my_include %}{% include plugins/activemq.md %}{% endcapture %}
{{ my_include | markdownify }}
</div>
97 changes: 5 additions & 92 deletions _docs_agent/plugins/amazoncloudwatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,96 +12,9 @@ More information on: [https://aws.amazon.com/cloudwatch/](https://aws.amazon.com

{% include_relative _thirdparty.md %}

## Metrics

| Metric name | Metric unit |
|-----------------------------------------------------------|--------------|
| AWS/DynamoDB:ProvisionedReadCapacityUnits | Count |
| AWS/EBS:VolumeIdleTime | Seconds |
| AWS/EBS:VolumeQueueLength | Count |
| AWS/EBS:VolumeReadBytes | Bytes |
| AWS/EBS:VolumeReadOps | Count |
| AWS/EBS:VolumeTotalReadTime | Seconds |
| AWS/EBS:VolumeTotalWriteTime | Seconds |
| AWS/EBS:VolumeWriteBytes | Bytes |
| AWS/EBS:VolumeWriteOps | Count |
| AWS/ElastiCache:BytesUsedForCache | Bytes |
| AWS/ElastiCache:CacheHits | Count |
| AWS/ElastiCache:CurrConnections | Count |
| AWS/ElastiCache:CurrItems | Count |
| AWS/ElastiCache:Evictions | Count |
| AWS/ElastiCache:FreeableMemory | Bytes |
| AWS/ElastiCache:GetTypeCmds | Count |
| AWS/ElastiCache:NetworkBytesOut | Bytes |
| AWS/ElastiCache:NewConnections | Count |
| AWS/ElastiCache:Reclaimed | Count |
| AWS/ElastiCache:ReplicationLag | Seconds |
| AWS/ElastiCache:SaveInProgress | Count |
| AWS/ElastiCache:StringBasedCmds | Count |
| AWS/ElastiCache:SwapUsage | Bytes |
| AWS/ELB:HealthyHostCount | Count |
| AWS/ELB:UnHealthyHostCount | Count |
| AWS/RDS:BinLogDiskUsage by DatabaseClass | Bytes |
| AWS/RDS:BinLogDiskUsage by DBInstanceIdentifier | Bytes |
| AWS/RDS:BinLogDiskUsage by EngineName | Bytes |
| AWS/RDS:CPUCreditBalance by DatabaseClass | Count |
| AWS/RDS:CPUCreditBalance by DBInstanceIdentifier | Count |
| AWS/RDS:CPUCreditBalance by EngineName | Count |
| AWS/RDS:CPUCreditUsage by DatabaseClass | Count |
| AWS/RDS:CPUCreditUsage by DBInstanceIdentifier | Count |
| AWS/RDS:CPUCreditUsage by EngineName | Count |
| AWS/RDS:CPUUtilization by DatabaseClass | Percent |
| AWS/RDS:CPUUtilization by DBInstanceIdentifier | Percent |
| AWS/RDS:CPUUtilization by EngineName | Percent |
| AWS/RDS:DatabaseConnections by DatabaseClass | Count |
| AWS/RDS:DatabaseConnections by DBInstanceIdentifier | Count |
| AWS/RDS:DatabaseConnections by EngineName | Count |
| AWS/RDS:DiskQueueDepth by DatabaseClass | Count |
| AWS/RDS:DiskQueueDepth by DBInstanceIdentifier | Count |
| AWS/RDS:DiskQueueDepth by EngineName | Count |
| AWS/RDS:FreeableMemory by DatabaseClass | Bytes |
| AWS/RDS:FreeableMemory by DBInstanceIdentifier | Bytes |
| AWS/RDS:FreeableMemory by EngineName | Bytes |
| AWS/RDS:FreeStorageSpace by DatabaseClass | Bytes |
| AWS/RDS:FreeStorageSpace by DBInstanceIdentifier | Bytes |
| AWS/RDS:FreeStorageSpace by EngineName | Bytes |
| AWS/RDS:NetworkReceiveThroughput by DatabaseClass | Bytes/Second |
| AWS/RDS:NetworkReceiveThroughput by DBInstanceIdentifier | Bytes/Second |
| AWS/RDS:NetworkReceiveThroughput by EngineName | Bytes/Second |
| AWS/RDS:NetworkTransmitThroughput by DBInstanceIdentifier | Bytes/Second |
| AWS/RDS:NetworkTransmitThroughput by EngineName | Bytes/Second |
| AWS/RDS:ReadIOPS by DatabaseClass | Count/Second |
| AWS/RDS:ReadIOPS by DBInstanceIdentifier | Count/Second |
| AWS/RDS:ReadIOPS by EngineName | Count/Second |
| AWS/RDS:ReadLatency by DatabaseClass | Seconds |
| AWS/RDS:ReadLatency by DBInstanceIdentifier | Seconds |
| AWS/RDS:ReadLatency by EngineName | Seconds |
| AWS/RDS:ReadThroughput by DatabaseClass | Bytes/Second |
| AWS/RDS:ReadThroughput by DBInstanceIdentifier | Bytes/Second |
| AWS/RDS:ReadThroughput by EngineName | Bytes/Second |
| AWS/RDS:SwapUsage by DatabaseClass | Bytes |
| AWS/RDS:SwapUsage by DBInstanceIdentifier | Bytes |
| AWS/RDS:SwapUsage by EngineName | Bytes |
| AWS/RDS:WriteIOPS by DatabaseClass | Count/Second |
| AWS/RDS:WriteIOPS by DBInstanceIdentifier | Count/Second |
| AWS/RDS:WriteIOPS by EngineName | Count/Second |
| AWS/RDS:WriteLatency by DatabaseClass | Seconds |
| AWS/RDS:WriteLatency by DBInstanceIdentifier | Seconds |
| AWS/RDS:WriteLatency by EngineName | Seconds |
| AWS/RDS:WriteThroughput by DatabaseClass | Bytes/Second |
| AWS/RDS:WriteThroughput by DBInstanceIdentifier | Bytes/Second |
| AWS/RDS:WriteThroughput by EngineName | Bytes/Second |
| CPUCreditBalance | Count |
| CPUCreditUsage | Count |
| CPUUtilization | Percent |
| DiskReadBytes | Bytes |
| DiskReadOps | Count |
| DiskWriteBytes | Bytes |
| DiskWriteOps | Count |
| NetworkIn | Bytes |
| NetworkOut | Bytes |
| NetworkPacketsIn | Count |
| NetworkPacketsOut | Count |
| StatusCheckFailed | Count |
| StatusCheckFailed_Instance | Count |
| StatusCheckFailed_System | Count |
<!-- Auto generated metrics view -->
<div class="metrics">
{% capture my_include %}{% include plugins/amazon_aws.md %}{% endcapture %}
{{ my_include | markdownify }}
</div>
29 changes: 7 additions & 22 deletions _docs_agent/plugins/apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,13 @@ This plugin can be configured to perform a HTTP GET on your Apache. This active

A full URL (eg. `http://localhost/test_page.php`) should be provided.

## Events

* Service state

## Metrics

| Metric name | Metric unit |
|---------------------------------------------------|-------------|
| Apache total number of accesses | access |
| Apache bytes per request | b/req |
| Apache bytes per second | b/s |
| Apache ConnsAsyncClosing | conn |
| Apache ConnsAsyncKeepAlive | conn |
| Apache ConnsAsyncWriting | conn |
| Apache CPULoad | % |
| Apache requests per second | req/s |
| Apache total bytes transferred | b |
| Busy Apache workers | workers |
| Idle Apache workers | workers |
| Number of connections to Apache | conn |
| Number of seconds since the Apache server started | s |

## Notes

* `ExtendedStatus` has to be `On` for global statistics


<!-- Auto generated metrics view -->
<div class="metrics">
{% capture my_include %}{% include plugins/apache.md %}{% endcapture %}
{{ my_include | markdownify }}
</div>
31 changes: 5 additions & 26 deletions _docs_agent/plugins/aweber.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,9 @@ More information on: [https://www.aweber.com](https://www.aweber.com)

{% include_relative _thirdparty.md %}

## Events

* Start of new email campaign
* End of email campaign
* New subscriber list created
* Subscriber list deleted

## Metrics

| Metric name | Metric unit |
|---------------------------------------------------------------|-------------|
| Aweber Click-to-deliver rate (CTDR) per campaign | |
| Aweber Delivery rate per campaign | |
| Aweber Open rate per campaign | |
| Aweber Subscriber retention rate per campaign | |
| Number of Subscribers per List | |
| Number of Subscribers that were subscribed today per List | |
| Number of Subscribers that were subscribed yesterday per List | |
| Number of Subscribers where status=subscribed per List | |
| Number of Subscribers where status=unconfirmed per List | |
| Number of Subscribers where status=unsubscribed per List | |
| Total # of Messages Opened per campaign | |
| Total # of Messages sent per campaign | |
| Total # of spam complaints received per campaign | |
| Total # of undeliverable Messages per campaign | |
| Total # of unsubscribes per campaign | |
| Total Clicks per Message | |
<!-- Auto generated metrics view -->
<div class="metrics">
{% capture my_include %}{% include plugins/aweber.md %}{% endcapture %}
{{ my_include | markdownify }}
</div>
Loading

0 comments on commit 0ef3929

Please sign in to comment.