GithubHelp home page GithubHelp logo

nifi_exporter's People

Contributors

msiedlarek avatar sgrzemski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nifi_exporter's Issues

Build Issue

Hi,

i'm having an issue when trying to build your project. I'm not a GO dev, however when i try go build i get:
./main.go:111: cannot use collectors.NewDiagnosticsCollector(api, node.Labels) (type *collectors.DiagnosticsCollector) as type "github.com/prometheus/client_golang/prometheus".Collector in argument to "github.com/prometheus/client_golang/prometheus".DefaultRegisterer.Register:
*collectors.DiagnosticsCollector does not implement "github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/msiedlarek/nifi_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "github.com/prometheus/client_golang/prometheus".Metric)
./main.go:114: cannot use collectors.NewCountersCollector(api, node.Labels) (type *collectors.CountersCollector) as type "github.com/prometheus/client_golang/prometheus".Collector in argument to "github.com/prometheus/client_golang/prometheus".DefaultRegisterer.Register:
*collectors.CountersCollector does not implement "github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/msiedlarek/nifi_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "github.com/prometheus/client_golang/prometheus".Metric)
./main.go:117: cannot use collectors.NewProcessGroupsCollector(api, node.Labels) (type *collectors.ProcessGroupsCollector) as type "github.com/prometheus/client_golang/prometheus".Collector in argument to "github.com/prometheus/client_golang/prometheus".DefaultRegisterer.Register:
*collectors.ProcessGroupsCollector does not implement "github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/msiedlarek/nifi_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "github.com/prometheus/client_golang/prometheus".Metric)

Please advise

NIFI 1.16.3 An error has occurred during metrics gathering

Hi @msiedlarek , thanks a lot for your job.
I'm upgrade nifi to 1.16.3 version, and after that the exporter stop work with this error message:

An error has occurred during metrics gathering:

4 error(s) occurred:
* error collecting metric Desc{fqName: "nifi_conn_flow_files_queued", help: "The number of FlowFiles that are currently queued in the connection", constLabels: {}, variableLabels: [node_id connection_name connection_id group_id source_name destination_name]}: Invalid JSON response from NiFi: invalid character '<' looking for beginning of value
* error collecting metric Desc{fqName: "nifi_pg_component_count", help: "The number of components in this process group.", constLabels: {}, variableLabels: [group status]}: Invalid JSON response from NiFi: invalid character '<' looking for beginning of value
* error collecting metric Desc{fqName: "nifi_counter_total", help: "The value of the counter.", constLabels: {}, variableLabels: [node_id id context name]}: Cannot retrieve metrics for node '': Invalid JSON response from NiFi: invalid character '<' looking for beginning of value
* error collecting metric Desc{fqName: "nifi_info", help: "NiFi version info.", constLabels: {}, variableLabels: [node_id version]}: Invalid JSON response from NiFi: invalid character '<' looking for beginning of value

I think something change at response from Nifi, can you please check it?

Add in message for bulletins metric

I have no idea with golang, can you help or suggest any way to add the message comes with each bulletin even.
Thanks so much.

image

func (c *ProcessGroupsCollector) collect(ch chan<- prometheus.Metric, entity *client.ProcessGroupEntity) {
	bulletinCount := map[string]int{
		"INFO":    0,
		"WARNING": 0,
		"ERROR":   0,
	}
	for i := range entity.Bulletins {
		bulletinCount[entity.Bulletins[i].Bulletin.Level]++
	}

	for level, count := range bulletinCount {
		ch <- prometheus.MustNewConstMetric(
			c.bulletin5mCount,
			prometheus.GaugeValue,
			float64(count),
			entity.Component.Name,
			level,
			entity.Component.ID,

		)
	}

Exporting Metrics from a Standalone Secure NiFi Instance

Hello,
I am hosting a secure NiFi server with my own truststore/keystore. I am having problems attempting to export metrics using this tool under this environment. I've included the CA Cert in my config file, but I still am getting errors. ("tls: bad cert" is outputted from /metrics). I've been trying to fumble through different config scenarios within both NiFi and this tool, but I keep running into similar issues (either 'connection refused' or 'tls: bad cert'). Is it possible to create a guide or a list of NiFi config prerequisites/requirements in order to get this tool working with NiFi secure mode?

Thanks!

Add time unit metrics to nifi_exporter

Hi

Status History on NiFi gives us some metrics with unit of duration of time some examples are:

  1. Total Task Duration
  2. Average Lineage Duration
  3. Average Task Duration

and I believe there maybe other ones.

Can we add these type of metrics to nifi_exporter?

API counters

Hello,

Would like to know if this export supports export of nifi api custom counters (http(s)://nifi-host:port/nifi-api/counters) or if it only exports system wide metrics.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.