We have prometheus that gathers data and store them in influxdb. However, when I execute ‘SHOW MEASUREMENTS’, I am not seeing any but when I execute ‘SHOW SERIES’ I can see thousands of entry.
I was trying to use INTO in the query but it requires measurement and in my case, I can see nothing. Please help me on how can I do this?
Wouldn’t you need to select the database in the show measurements query (show measurements on db) or set the database prior to the show query (using “use db”)?
Ok, the db would anyway ask you to set the database.
Well, consider to show a sample input of the line protocol or some output of the indicated series, anything that could help someone reproduce the error.
I had encountered a problem that is opposite to yours. It’s related to retention policy.
I write to self-defined retention policy(not default one).
Show series shows nothing; Show measurement show the measurement I write to.
In the show series results you posted how many series are those: two series, one or more? I would think that the dumped result would show something like each series for single line.
Additionally it seems the line starts with an underscore which begs the question if the name of the series is omitted by design or that’s part of the “invisibility”.
The position of the underscore is where the name of the measurement would appear following the show series command. So the underscore and the empty show measurement results seem to point towards the same issue…measurement name.
The db shouldn’t allow an empty string for a measurement name, nonetheless worthwhile to check if those names are what you expect them to be.
so for example the series has _ec2 instance in the beginning. Are you saying that when I execute ‘SHOW MEASUREMENTS’ command I should see “ec2 instasnce”.
Say for example, I successfully inserted a measurement(payment) manually in the influxdb. My question is, what will happen to the points that will be written next from prometheus to influxdb. Will the points automatically be written into the measurement(payment)?
They should be written, particularly so if they record the same measurement (payment).
However, I’m not sure what is meant by “automatically”, the database and measurement name must be indicated correctly to influxdb.
I am still puzzled by what is the measurement name in your earlier sample of the db entry, could it be that your measurement name is an an underscore ( _ )? and in that case, listing measurements would show an underscore.