hawkular-metrics | Time Series Metrics Engine based on Cassandra | Time Series Database library
kandi X-RAY | hawkular-metrics Summary
kandi X-RAY | hawkular-metrics Summary
Hawkular Metrics is the metric data storage engine part of Hawkular community.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Starts the Cassandra cluster
- Waits for the schema to be updated
- Start data access
- Creates a session
- Converts a row of rows to datapoints
- Converts a byte value to an availability type
- Reschedules a job
- Create a value for a RepeatingTrigger
- Starts the query
- Performs an action on a tick
- Renew locks
- Writes the mappings table to the OpenShift_Mapping table
- Initialize prepared statements
- Executes a job
- Increments the stream
- Makes a temporary prepared insert statement
- Gets period values matching the given predicate
- Deserialize tags from a ByteBuffer
- Retrieves the namespaces mapping for a set of tenants
- Invoked when a job is scheduled
- Searches for a data point
- Handle the configuration options
- Gets the metric data for the specified ID
- Handles a data point
- Retrieves period periods
- Computes the compressed point containers
hawkular-metrics Key Features
hawkular-metrics Examples and Code Snippets
Community Discussions
Trending Discussions on hawkular-metrics
QUESTION
I'm working on creating a dashboard where I can monitor the thread count for apps which are present in hawkular-metrics from openshift. (The datasource is already configured).
I do have a json file for creating dashbboard for memory usage for all the pods in our openshift project. But how do I modify it to display thread count for the pods in hawkular metrics. Currently it is displaying Average, Min and Max memory etc for all the apps in out openshift project.
The descriptor name used for memory usage in tags inside the json file is memory/usage. What would be the descriptor name for thread count? And are there any modifications that I should do. Does Hawkular actually export thread count related metrics?
Here's the json file for memory usage:
...ANSWER
Answered 2019-Feb-25 at 13:31I am not aware of any thread count metric in openshift w/ hawkular.
It's using heapster under the hood, see the metrics here: https://github.com/kubernetes-retired/heapster/blob/master/docs/storage-schema.md#metrics.
But I'm not 100% sure if all of them are reported into hawkular.
QUESTION
We are getting metrics details by the below command:
curl --insecure --cacert ca.crt -H "Authorization: Bearer 2XwxlTO_ls_HqpwTe5OWhGwuTu5qEzFxVGIhe761V7A" -H "Hawkular-Tenant: openshift-infra" -X GET https://hawkular-metrics.example.com/hawkular/metrics/metrics
We do not get data using below command:
curl --insecure --cacert ca.crt -H "Authorization: Bearer 2XwxlTO_ls_HqpwTe5OWhGwuTu5qEzFxVGIhe761V7A" -H "Hawkular-Tenant: openshift-infra" -X GET https://hawkular-metrics.example.com/hawkular/metrics/counter/data?tags=descrpitor_name:cpu/usage,pod_name:hawkular-cassandra
we are getting below error:
"errorMsg":"RESTEASY003210: Could not find resource for full path: https://hawkular-metrics.example.com/hawkular/metrics/counter"
...ANSWER
Answered 2018-Jun-14 at 12:40I think you mistyped the URL, there's a s
at counters
. See the doc: http://www.hawkular.org/docs/rest/rest-metrics.html#GET__counters_data
By the way I think you will have to provide at least buckets
or bucketDuration
parameter to your query, else you'll get another error.
QUESTION
I have install openshift origin 3.9 using inventory file like you. I have used below line for metrics installation:
...ANSWER
Answered 2018-May-31 at 01:02Is hawkular-metrics.example.com/hawkular/metrics/metics
accessible from client? Either a DNS Server or a local /etc/hosts
entry should resolve hawkular-metrics.example.com
to the node where router pod resides.
QUESTION
I want to get the metrics from vert.x with Hawkular, but I have problem. Following the tutorial of this. http://vertx.io/docs/vertx-hawkular-metrics/java/
Then, I change the code of the tutorial of vert.x http://vertx.io/blog/my-first-vert-x-3-application/
like this.
from this
...ANSWER
Answered 2017-May-09 at 15:17I think the test process finishes before the metrics had time to get reported. I tried with your example (which looks correct beside this timing issue), and had to put a Thread.sleep of 1 second after publishing on the event bus in order to see something in Hawkular.
curl -u jdoe:password -H "Hawkular-Tenant: com.acme" http://localhost:8080/hawkular/metrics/counters
now gives
[{"id":"vertx.eventbus.publishedRemoteMessages","dataRetention":14,"type":"counter","tenantId":"com.acme"},{"id":"vertx.pool.worker.vert.x-internal-blocking.queuedCount","dataRetention":14,"type":"counter","tenantId":"com.acme"},{"id":"vertx.eventbus.receivedMessages","dataRetention":14,"type":"counter","tenantId":"com.acme"}, etc.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hawkular-metrics
WildFly distribution
EAR distribution
A running Cassandra cluster, which can be a single node, is required for unit and integration tests. If you only want to build the sources without a running C* cluster, you can run ./mvnw install -DskipTests.
For development or testing, the easiest way to setup Cassandra is to use the Cassandra Cluster Manager, CCM. These steps build and start a single node cluster of Cassandra. Note that while it is recommended to use ccm, it is not necessary. You just need to make sure you have a running 3.0.12 cluster.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page