question

nagasree963_193876 avatar image
nagasree963_193876 asked nagasree963_193876 commented

Unable to build the metrics reporter dashboards for Cassandra in Kubernetes

I am following this document for metrics report for cassandra:

https://docs.datastax.com/en/cass-operator/doc/cass-operator/cassOperatorMetricReporterDashboards.html

But I see lots of errors when I am running the commands. I see last development is nfeore 4 months. When can expect the latest one

[UPDATE] I have just cloned the below repo:

https://github.com/datastax/metric-collector-for-apache-cassandra

Following the steps that are there in the "https://docs.datastax.com/en/cass-operator/doc/cass-operator/cassOperatorMetricReporterDashboards.html"

bin/clean.py && bin/build.py

When running the above command, I am getting error like need to remove character'f' in 1o th line for clean.py. I modified those and able to run successfully.

But after running the build.py, The Python-generated files are written to the generated directory. I am able to see only grafana folder , but not the prometheus one.

Am I following the correct way or am I doing anything wrong. Please assist me in this.

cass-operator
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered nagasree963_193876 commented

It's not clear what problem you're reporting so if you provide additional information on what errors you are seeing, we'd be happy to assist.

The cass-operator is being actively worked on with the last commit just 2 days ago. The latest version v1.4.1 was just released 2 weeks ago.

The last commit on DataStax Metrics Collector for Apache Cassandra (MCAC) was on July 30 with the latest version v.0.1.11 was released at the end of June.

There isn't much to develop on MCAC because all it does is collect metric data that is exposed in Mbeans by Apache Cassandra. To be clear, MCAC does not generate the data -- it simply collects whatever Cassandra reports. Because of this, there isn't much that would change from a collector perspective. The change is driven by refactors and improvements in Cassandra itself. Cheers!

[UPDATE] You don't have to build the dashboard unless you intend to make changes to it. The dashboard templates are already provided to you as stated in this section of the document you linked:

DataStax provides GitHub-hosted templates and build scripts for metrics reporter dashboards using Prometheus and Grafana. The dashboards allow you to check the health of DSE or open-source Apache Cassandra® resources in a Kubernetes cluster. Refer to the hosted start page containing resources for each environment:

These templates are the YAML files referenced in the steps in that document. For example, to install the Prometheus operator:

$ kubectl create -f dashboards/k8s-build/generated/prometheus/operator.yaml

The operator.yaml in the command came from https://github.com/datastax/metric-collector-for-apache-cassandra/tree/master/dashboards/k8s-build/generated/prometheus.

Since you mentioned that you cloned the repo locally, you will find the Prometheus templates in this directory on your server:

metric-collector-for-apache-cassandra/
  dashboards/
    k8s-build/
      generated/
        prometheus/
          instance.yaml
          operator.yaml
          service-monitor.yaml

We have recently hosted a hands-on workshop where attendees learned how to deploy the Metrics Collector in a Kubernetes cluster. You can see the instructions we used in the workshop here. Cheers!

5 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

nagasree963_193876 avatar image nagasree963_193876 commented ·

Thank you for replying back.

[Edited and posted update in original question]

0 Likes 0 ·
nagasree963_193876 avatar image nagasree963_193876 commented ·

Pasting the output here



0 Likes 0 ·
1601279443192.png (109.4 KiB)
1601279489938.png (129.0 KiB)
nagasree963_193876 avatar image nagasree963_193876 commented ·

Am I following the correct way or am I doing anything wrong. Please assist me in this.

0 Likes 0 ·
nagasree963_193876 avatar image nagasree963_193876 commented ·

Is there anyone who can help me with this. Please atleast mention the correct document for metrics collector for Apache cassandra

0 Likes 0 ·
nagasree963_193876 avatar image nagasree963_193876 commented ·

When I am trying to install crds and OLM using the below command. Throwing an error.

curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.15.1/install.sh | bash -s 0.15.1

Error:

unable to recognize "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.15.1/crds.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1"

Can you please help me with it

0 Likes 0 ·