|
| 1 | +# Example Metrics |
| 2 | + |
| 3 | +Example of the metrics you could expect to see, returned for the service,stack, node and node cluster states. |
| 4 | + |
| 5 | +``` |
| 6 | +# HELP docker_cloud_node_cluster_state State of defined node cluster as reported by the Docker Cloud API |
| 7 | +# TYPE docker_cloud_node_cluster_state gauge |
| 8 | +docker_cloud_node_cluster_state{node_cluster_name="testing",state="Deployed"} 1 |
| 9 | +# HELP docker_cloud_node_state State of defined node as reported by the Docker Cloud API |
| 10 | +# TYPE docker_cloud_node_state gauge |
| 11 | +docker_cloud_node_state{node_uuid="3e00675b-4dc0-4ea9-8329-aa852f34dcc7",state="Deployed"} 1 |
| 12 | +docker_cloud_node_state{node_uuid="c7f72de9-48ec-4db0-ae70-813c1ce2b7cf",state="Deployed"} 1 |
| 13 | +# HELP docker_cloud_service_created_date Date & time the service was created in Unix seconds |
| 14 | +# TYPE docker_cloud_service_created_date gauge |
| 15 | +docker_cloud_service_created_date{service_name="Example1",state="Running"} 1.485188537e+09 |
| 16 | +docker_cloud_service_created_date{service_name="grafana",state="Running"} 1.485188529e+09 |
| 17 | +docker_cloud_service_created_date{service_name="node-exporter",state="Running"} 1.485532594e+09 |
| 18 | +docker_cloud_service_created_date{service_name="prometheus",state="Running"} 1.485188566e+09 |
| 19 | +# HELP docker_cloud_service_state State of defined service as reported by the Docker Cloud API |
| 20 | +# TYPE docker_cloud_service_state gauge |
| 21 | +docker_cloud_service_state{service_name="Example1",state="Running"} 1 |
| 22 | +docker_cloud_service_state{service_name="grafana",state="Running"} 1 |
| 23 | +docker_cloud_service_state{service_name="node-exporter",state="Running"} 1 |
| 24 | +docker_cloud_service_state{service_name="prometheus",state="Running"} 1 |
| 25 | +# HELP docker_cloud_stack_created_date Date & time the stack was created in Unix seconds |
| 26 | +# TYPE docker_cloud_stack_created_date gauge |
| 27 | +docker_cloud_stack_created_date{stack_name="Example1",state="Running"} 1.485188688e+09 |
| 28 | +# HELP docker_cloud_stack_state State of defined stack as reported by the Docker Cloud API |
| 29 | +# TYPE docker_cloud_stack_state gauge |
| 30 | +docker_cloud_stack_state{stack_name="Example1",state="Running"} 1 |
| 31 | +``` |
| 32 | + |
| 33 | +An example of the internal metrics to track the performance of the exporter, and useful as a basic example how to instrument your code. |
| 34 | + |
| 35 | +``` |
| 36 | +# HELP function_count_totals total count of function calls |
| 37 | +# TYPE function_count_totals counter |
| 38 | +function_count_totals{fnc="getJSON",pkg="hosts"} 3 |
| 39 | +function_count_totals{fnc="getJSON",pkg="services"} 3 |
| 40 | +function_count_totals{fnc="getJSON",pkg="stacks"} 3 |
| 41 | +# HELP function_durations_seconds Function timings for Rancher Exporter |
| 42 | +# TYPE function_durations_seconds summary |
| 43 | +function_durations_seconds{fnc="getJSON",pkg="hosts",quantile="0.5"} 33546 |
| 44 | +function_durations_seconds{fnc="getJSON",pkg="hosts",quantile="0.9"} 59199 |
| 45 | +function_durations_seconds{fnc="getJSON",pkg="hosts",quantile="0.99"} 59199 |
| 46 | +function_durations_seconds_sum{fnc="getJSON",pkg="hosts"} 121502 |
| 47 | +function_durations_seconds_count{fnc="getJSON",pkg="hosts"} 3 |
| 48 | +function_durations_seconds{fnc="getJSON",pkg="services",quantile="0.5"} 49354 |
| 49 | +function_durations_seconds{fnc="getJSON",pkg="services",quantile="0.9"} 63310 |
| 50 | +function_durations_seconds{fnc="getJSON",pkg="services",quantile="0.99"} 63310 |
| 51 | +function_durations_seconds_sum{fnc="getJSON",pkg="services"} 146519 |
| 52 | +function_durations_seconds_count{fnc="getJSON",pkg="services"} 3 |
| 53 | +function_durations_seconds{fnc="getJSON",pkg="stacks",quantile="0.5"} 45075 |
| 54 | +function_durations_seconds{fnc="getJSON",pkg="stacks",quantile="0.9"} 59805 |
| 55 | +function_durations_seconds{fnc="getJSON",pkg="stacks",quantile="0.99"} 59805 |
| 56 | +function_durations_seconds_sum{fnc="getJSON",pkg="stacks"} 134789 |
| 57 | +function_durations_seconds_count{fnc="getJSON",pkg="stacks"} 3 |
| 58 | +``` |
0 commit comments