grafana | source platform | Dashboard library
kandi X-RAY | grafana Summary
kandi X-RAY | grafana Summary
grafana-chinese src
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of grafana
grafana Key Features
grafana Examples and Code Snippets
Community Discussions
Trending Discussions on grafana
QUESTION
ANSWER
Answered 2021-Jun-11 at 09:40Your dashboard time range has To
: now
- so, that's current time.
Use now/d
in To
- that's end of current day (and also now-7d/d
will be good From
in this case).
QUESTION
I have installed a Ceph cluster V15 (Octopus). Following the general setup guide a Grafana Dashboard is installed during bootstrapping the cluster. This is a nice feature. But the dashboard can be access on port :3000 from anonymous without authentication.
I guess this is because of the configuration of the anonymous mode in /etc/grafana/grafana.ini:
...ANSWER
Answered 2021-Jun-10 at 10:32There's an instance of the grafana.ini file on the grafana host:
QUESTION
I'm trying to clone a repo from Gitlab.com via ssh. But I get this error all the time:
...ANSWER
Answered 2021-Jun-09 at 05:07It depends on what you used for the $keyFile
in your script.
A default name should be part of the /home/pi/.ssh/id_xxx
names considered during an SSH session.
But a non-default name would need to be specified in an ~/.ssh/config
: double-check if you have one.
Also, in your script, to be sure, don't use ~/.ssh,
but /home/$USER/.ssh
consistently, to avoid any mistake when the shell substitutes ~
.
QUESTION
I'm experimenting with Prometheus to monitor and visualize the performance of several Java services. Works great and with Grafana the visual overview is very impressive.
But I don't seem to find how you can configure Prometheus itself to prevent its web interface to be publicly available. Grafana does this out of the box...
If I want to run everything on a cloud server, it would be great if I could check the /graph and /targets URL for instance, to check if everything is working OK before creating dashboards in Grafana.
Anyone who can point me to the right documentation? I went through this page, but didn't find exactly what I was looking for: https://prometheus.io/docs/prometheus/latest/configuration/configuration/
For info, this is my docker compose:
...ANSWER
Answered 2021-Jun-07 at 23:57Prometheus doesn't implement it's own authentication|authorization.
Your best approach is to secure access to all host(s) running all software and, in this case, to the hosts running these Docker containers and all targets that you scrape etc.
All cloud providers provide ways by which you may limit access to the resources you create with their platforms. You'll want to become familiar with your preferred platforms' mechanisms and you should establish confidence, in part, by proving to yourself that you're able to restrict access to your services when you deploy then to these platforms.
Perhaps start with a simple test web site, secure it, then test that it is secure. Once you're confident in doing this, deploy your Prometheus services.
See this document on Prometheus security
QUESTION
As the question speaks for itself, I am aware that the latest Grafana has the option to Inspect Panels in the UI itself, but I wanted to expose the number of rows in the given table through an API. Wanted to write an automation code that deals with the number of rows, however, I cannot figure out an easier way to do that. The grafana I am dealing with is using elasticsearch nodes for querying.
...ANSWER
Answered 2021-Apr-12 at 08:45Update:
I didn't find any way to get the number of rows through an API endpoint from Grafana, however, what I did was, I copied the Elasticsearch query that the Grafana dashboard made for the given panel in the dashboard [You can copy the query either by using Networks tab on Chrome, or, you can simply follow this:
- Get to this dropdown for panel:
- Press "Inspect"
- Click on "Query" tab here:
- There you will see the Query, copy it and use it in the Elasticsearch Query API, and you will get your desired JSON response ]
, and counted the number of "buckets" that are at the deepest level (say, you have used 4 group-by, example:
then the deepest bucket would be at level 4), and calculated the number of such Buckets which have keys, and that gives me the number of rows in the table panel.
This is a simple python code I wrote for the same:
QUESTION
I have a question on which I am stuck and I am not quite sure how to resolve it.
In my work project I have an ActiveMQ queue and I want to send some metrics to Prometheus which will help me to create some alerts in Grafana. I know that for ActiveMQ Artemis I can use this plugin, but I don't understand 100% how to configure it.
My application is deployed on a Kubernetes cluster and the ActiveMQ broker is there too. So I have created ActiveMQPrometheusMetricsPlugin class which implements org.apache.activemq.artemis.core.server.metrics.ActiveMQMetricsPlugin
. Now is where I get confused right now I should deploy my application and the metrics would be gather by Prometheus? I should do more configuration?
We usually do not build the application on local env. We are using a pipeline which is building and deploying the app to various envs (dev, test, prod). I should do the configuration similar with the GitHub plugin project, deploy it, and after that find those jars on Kubernetes and move them to the correct location? Also dev-ops said to me that we are using a default conf. I don't know if we have a broker.xml
file.
ANSWER
Answered 2021-Jun-03 at 16:09There are a couple of important points to understand before getting started:
- When using the Artemis Prometheus Metrics Plugin neither the broker nor the applications "send" metrics to Prometheus. Prometheus itself must retrieve or "scrape" metrics from the broker. This is why the plugin comes with a servlet. The servlet exposes an HTTP endpoint that Prometheus can use to scrape metrics.
- The Artemis Prometheus Metrics Plugin is part of the broker infrastructure. It is not to be deployed as part of an application. The plugin's jar and war files are deployed on the broker and configured in
broker.xml
andbootstrap.xml
respectively.
The Artemis Prometheus Metrics Plugin provides integration with Prometheus using two modules:
artemis-prometheus-metrics-plugin: This provides the actual implementation of
org.apache.activemq.artemis.core.server.metrics.ActiveMQMetricsPlugin
and packages it with the Micrometer and Prometheus dependencies in an "uber" jar.artemis-prometheus-metrics-plugin-servlet: This provides a war file containing a simple servlet which can be deployed to the broker's embedded web server which then Prometheus can use to scrape metrics.
Once you clone the Artemis Prometheus Metrics Plugin repository simply run mvn install
to build these two modules. The output will be in their respective target
directories.
After building the modules follow these steps to deploy and configure the Artemis Prometheus Metrics Plugin. If you have some kind of dev-ops group which manages and configures your broker then they would follow these steps.
Copy
artemis-prometheus-metrics-plugin/target/artemis-prometheus-metrics-plugin-.jar
to/lib
.Add this to your
/etc/broker.xml
:
QUESTION
I was going through the loki documentation. And i came across storage section, where you can set the storage to be any DB/FileSystem/InMemory. Currently, i need to store the logs into MongoDB. How can i do it?
I don't see any configuration file to store the logs to MongoDB. Is there any reference/configuration file which could help me set these loki chunks and indexes to be stored in MongoDB?
...ANSWER
Answered 2021-Jun-04 at 22:36MongoDB is not supported currently. Only a certain set of DBs are supported.
Storage options in Loki
The following are supported for the index:
Single Store (boltdb-shipper) - Recommended for 2.0 and newer index store which stores boltdb index files in the object store
- Amazon DynamoDB
- Google Bigtable
- Apache Cassandra
- BoltDB (doesn’t work when clustering Loki)
The following are supported for the chunks:
- Amazon DynamoDB
- Google Bigtable
- Apache Cassandra
- Amazon S3
- Google Cloud Storage
- Filesystem
QUESTION
I'm brand new to Grafana. Can I (and how) load a JSON into Grafana and display as a table? Or is it only for time series data?
I'm loading grafana with:
...ANSWER
Answered 2021-Jun-04 at 21:06Grafana is just a visualisation tool. It needs a data source to query data and display. It is optimised for time series data, but static data can also be displayed easily.
Use the API plugin .
You can also use TestData DB data source which is available within Grafana to test scenarios. (does not use json though)
Once the data source is configured, you can use table panel to display data based on queries.
Each dashboard can have multiple panels so tables can be shown side by side.
QUESTION
Good day everyone, I ran into such a problem while adding monitors to grafana with metrics on the status of requests from our suppliers to the clickhouse database. I need suppliers whose status = 200 or! = 200 to return to the schedule.
We want that when the condition - count (CASE WHEN StatusRes! = '200' THEN 1 END) is fulfilled, we will display the data of suppliers that have a request status not 200, but if - count (CASE WHEN StatusRes 0 = '200' THEN 1 END ) only suppliers with request status 200.
But in fact, the request is processed incorrectly (all statuses are returned both 200 and 500) and I do not know why.
Here is the query itself, which we will use in grafana to take metrics:
...ANSWER
Answered 2021-Jun-04 at 16:29count( col )
-- counts number of ROWS where col is not null. It's not about CH, it's ANSI SQL.
You actually should use countIf
QUESTION
While setting up ElasticSearch Exporter's service, I came up with this below content
...ANSWER
Answered 2021-Jun-04 at 09:57In the documentation, this is written :
the address of a remote Elasticsearch server. When basic auth is needed, specify as: ://:@:. E.G., http://admin:pass@localhost:9200.
The documentation here : https://github.com/prometheus-community/elasticsearch_exporter#configuration
An example here : https://github.com/Lyr/ansible-elasticsearch-exporter/blob/master/templates/elasticsearch_exporter.service.j2
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grafana
Get Grafana
Installation guides
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